1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php /** * WPSEO plugin file. * * @package Yoast\YoastSEO\Loaders */
if ( ! defined( 'WPSEO_VERSION' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit(); }
$has_feature_flag = defined( 'YOAST_SEO_INDEXABLES' ) && YOAST_SEO_INDEXABLES === true;
// @codingStandardsIgnoreLine PHPCompatibility.PHP.NewLanguageConstructs.t_ns_separatorFound -- This is a > 5.3 feature. if ( $has_feature_flag && class_exists( '\Yoast\WP\Free\Config\Plugin' ) ) { // @codingStandardsIgnoreLine PHPCompatibility.PHP.NewLanguageConstructs.t_ns_separatorFound -- This is a > 5.3 feature. $bootstrap = new \Yoast\WP\Free\Config\Plugin(); $bootstrap->initialize(); $bootstrap->register_hooks(); }
|