diff options
author | Yury German <blueknight@gentoo.org> | 2022-06-15 12:08:35 -0400 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2022-06-15 12:08:35 -0400 |
commit | 36d7691c33cb64ece817246e47a779ec648d10b0 (patch) | |
tree | 08f2fb95303a1d8eeba2c8629a24b35a91fb1cac /plugins/jetpack/jetpack_vendor/automattic/jetpack-waf/src/class-waf-constants.php | |
parent | twentyfourteen upg 2.7 to 3.2 and twentysixteen from 2.0 to 2.5 (diff) | |
download | blogs-gentoo-36d7691c33cb64ece817246e47a779ec648d10b0.tar.gz blogs-gentoo-36d7691c33cb64ece817246e47a779ec648d10b0.tar.bz2 blogs-gentoo-36d7691c33cb64ece817246e47a779ec648d10b0.zip |
Openid-3.6.1 and jetpack-11.0 upgrade
Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'plugins/jetpack/jetpack_vendor/automattic/jetpack-waf/src/class-waf-constants.php')
-rw-r--r-- | plugins/jetpack/jetpack_vendor/automattic/jetpack-waf/src/class-waf-constants.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/jetpack/jetpack_vendor/automattic/jetpack-waf/src/class-waf-constants.php b/plugins/jetpack/jetpack_vendor/automattic/jetpack-waf/src/class-waf-constants.php new file mode 100644 index 00000000..0cfa3446 --- /dev/null +++ b/plugins/jetpack/jetpack_vendor/automattic/jetpack-waf/src/class-waf-constants.php @@ -0,0 +1,27 @@ +<?php +/** + * Class use to define the constants used by the WAF + * + * @package automattic/jetpack-waf + */ + +namespace Automattic\Jetpack\Waf; + +/** + * Defines our constants. + */ +class Waf_Constants { + /** + * Initializes the constants required for generating the bootstrap, if they have not been initialized yet. + * + * @return void + */ + public static function initialize_constants() { + if ( ! defined( 'JETPACK_WAF_DIR' ) ) { + define( 'JETPACK_WAF_DIR', trailingslashit( WP_CONTENT_DIR ) . 'jetpack-waf' ); + } + if ( ! defined( 'JETPACK_WAF_WPCONFIG' ) ) { + define( 'JETPACK_WAF_WPCONFIG', trailingslashit( WP_CONTENT_DIR ) . '../wp-config.php' ); + } + } +} |