diff --git a/controllers/admin/sitemap.php b/controllers/admin/sitemap.php index 80ca8c8..10d6bae 100755 --- a/controllers/admin/sitemap.php +++ b/controllers/admin/sitemap.php @@ -85,7 +85,7 @@ public function check_plugin_conflicts() if ( !empty( $wpseo_titles['disable-date'] ) ) { // check if Split by option is set anywhere foreach ( (array) get_option( 'xmlsf_post_types', array() ) as $type => $settings ) { - if ( is_array( $settings ) && !empty( $settings['archive'] ) ) { + if ( !empty( $settings['active'] ) && !empty( $settings['archive'] ) ) { add_action( 'admin_notices', array( 'XMLSF_Admin_Notices', 'notice_wpseo_date_redirect' ) ); break; } @@ -112,7 +112,7 @@ public function check_plugin_conflicts() if ( ! empty( $seopress_toggle['toggle-titles'] ) && ! empty( $seopress_titles['seopress_titles_archives_date_disable'] ) ) { // check if Split by option is set anywhere foreach ( (array) get_option( 'xmlsf_post_types', array() ) as $type => $settings ) { - if ( is_array( $settings ) && !empty( $settings['archive'] ) ) { + if ( !empty( $settings['active'] ) && !empty( $settings['archive'] ) ) { add_action( 'admin_notices', array( 'XMLSF_Admin_Notices', 'notice_seopress_date_redirect' ) ); break; } diff --git a/readme.txt b/readme.txt index f192d43..057d3c8 100755 --- a/readme.txt +++ b/readme.txt @@ -289,14 +289,16 @@ Yes. In fact, it has been designed for it. Tested on WPMU 2.9.2 and WPMS 3+ both == Upgrade Notice == -= 5.1.1 = += 5.1.2 = -Bugfix release: options page and news pings. +Bugfix release. == Changelog == = 5.1.2 = +* FIX: admin notice dismiss button failing +* FIX: date archive redirect notice showing for inactive post types * Plugin support and rate links on plugins page = 5.1.1 = diff --git a/xml-sitemap.php b/xml-sitemap.php index 11f0f85..7e9bb2c 100755 --- a/xml-sitemap.php +++ b/xml-sitemap.php @@ -3,7 +3,7 @@ Plugin Name: XML Sitemap & Google News Plugin URI: http://status301.net/wordpress-plugins/xml-sitemap-feed/ Description: Feed the hungry spiders in compliance with the XML Sitemap and Google News protocols. Happy with the results? Please leave me a tip for continued development and support. Thanks :) -Version: 5.1.2-alpha +Version: 5.1.2 Text Domain: xml-sitemap-feed Requires at least: 4.6 Requires PHP: 5.4 @@ -11,7 +11,7 @@ Author URI: http://status301.net/ */ -define( 'XMLSF_VERSION', '5.1.1' ); +define( 'XMLSF_VERSION', '5.1.2' ); /* Copyright 2019 RavanH http://status301.net/