plugin updates
This commit is contained in:
@@ -15,7 +15,7 @@ if ( ! function_exists( 'add_filter' ) ) {
|
||||
* {@internal Nobody should be able to overrule the real version number as this can cause
|
||||
* serious issues with the options, so no if ( ! defined() ).}}
|
||||
*/
|
||||
define( 'WPSEO_VERSION', '23.8' );
|
||||
define( 'WPSEO_VERSION', '23.9' );
|
||||
|
||||
|
||||
if ( ! defined( 'WPSEO_PATH' ) ) {
|
||||
@@ -221,10 +221,8 @@ function _wpseo_activate() {
|
||||
WPSEO_Options::ensure_options_exist();
|
||||
|
||||
if ( ! is_multisite() || ! ms_is_switched() ) {
|
||||
if ( WPSEO_Options::get( 'stripcategorybase' ) === true ) {
|
||||
// Constructor has side effects so this registers all hooks.
|
||||
$GLOBALS['wpseo_rewrite'] = new WPSEO_Rewrite();
|
||||
}
|
||||
// Constructor has side effects so this registers all hooks.
|
||||
$GLOBALS['wpseo_rewrite'] = new WPSEO_Rewrite();
|
||||
}
|
||||
add_action( 'shutdown', [ 'WPSEO_Utils', 'clear_rewrites' ] );
|
||||
|
||||
@@ -341,7 +339,7 @@ function wpseo_init() {
|
||||
WPSEO_Options::get_instance();
|
||||
WPSEO_Meta::init();
|
||||
|
||||
if ( version_compare( WPSEO_Options::get( 'version', 1 ), WPSEO_VERSION, '<' ) ) {
|
||||
if ( version_compare( WPSEO_Options::get( 'version', 1, [ 'wpseo' ] ), WPSEO_VERSION, '<' ) ) {
|
||||
if ( function_exists( 'opcache_reset' ) ) {
|
||||
// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- Prevent notices when opcache.restrict_api is set.
|
||||
@opcache_reset();
|
||||
@@ -351,11 +349,9 @@ function wpseo_init() {
|
||||
// Get a cleaned up version of the $options.
|
||||
}
|
||||
|
||||
if ( WPSEO_Options::get( 'stripcategorybase' ) === true ) {
|
||||
$GLOBALS['wpseo_rewrite'] = new WPSEO_Rewrite();
|
||||
}
|
||||
$GLOBALS['wpseo_rewrite'] = new WPSEO_Rewrite();
|
||||
|
||||
if ( WPSEO_Options::get( 'enable_xml_sitemap' ) === true ) {
|
||||
if ( WPSEO_Options::get( 'enable_xml_sitemap', null, [ 'wpseo' ] ) === true ) {
|
||||
$GLOBALS['wpseo_sitemaps'] = new WPSEO_Sitemaps();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user