XML Sitemap & Google News feeds - Version 5.3.3

Version Description

Fix Bing ping 410 error response and help links.

=

Download this release

Release Info

Developer RavanH
Plugin Icon 128x128 XML Sitemap & Google News feeds
Version 5.3.3
Comparing to
See all releases

Code changes from version 5.3.2 to 5.3.3

controllers/class.xmlsf-admin.php CHANGED
@@ -157,7 +157,7 @@ class XMLSF_Admin
157
 
158
  else :
159
 
160
- _e( 'XML Sitemaps are not available because of your site’s visibility settings (above).', 'xml-sitemap-feed' );
161
 
162
  endif;
163
  }
157
 
158
  else :
159
 
160
+ _e( 'XML Sitemaps are not available because of your site’s visibility settings (above).', 'xml-sitemap-feed' );
161
 
162
  endif;
163
  }
controllers/class.xmlsf-sitemap-news.php CHANGED
File without changes
controllers/class.xmlsf-sitemap.php CHANGED
File without changes
models/functions.shared.php CHANGED
@@ -52,7 +52,7 @@ function xmlsf_filter_request( $request ) {
52
  $request['post_status'] = 'publish';
53
  $request['no_found_rows'] = true; // found rows calc is slow and only needed for pagination
54
 
55
- // SPECIFIC REQUEST FILTERING AND PREPEARTIONS
56
  if ( strpos( $request['feed'], 'news' ) === 8 ) {
57
  // set the news sitemap conditional flag
58
  xmlsf()->is_news = true;
52
  $request['post_status'] = 'publish';
53
  $request['no_found_rows'] = true; // found rows calc is slow and only needed for pagination
54
 
55
+ // SPECIFIC REQUEST FILTERING AND PREPARATIONS
56
  if ( strpos( $request['feed'], 'news' ) === 8 ) {
57
  // set the news sitemap conditional flag
58
  xmlsf()->is_news = true;
models/functions.sitemap.php CHANGED
@@ -65,6 +65,8 @@ function xmlsf_get_index_archive_data( $post_type = 'post', $archive_type = '' )
65
 
66
  global $wpdb;
67
 
 
 
68
  if ( 'weekly' == $archive_type ) :
69
 
70
  $week = _wp_mysql_week( '`post_date`' );
65
 
66
  global $wpdb;
67
 
68
+ $return = array();
69
+
70
  if ( 'weekly' == $archive_type ) :
71
 
72
  $week = _wp_mysql_week( '`post_date`' );
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravan
4
  Tags: sitemap, xml sitemap, news sitemap, sitemap.xml, robots.txt, Google, Google News, Yahoo, Bing, Yandex, Baidu, seo, feed, Polylang, WPML, image sitemap
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
- Tested up to: 5.9
8
- Stable tag: 5.3.2
9
 
10
  XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache, Polylang and WPML compatible.
11
 
@@ -296,12 +296,15 @@ Yes. In fact, it has been designed for it. Tested on WPMU 2.9.2 and WPMS 3+ both
296
 
297
  == Upgrade Notice ==
298
 
299
- = 5.3.2 =
300
 
301
  Fix Bing ping 410 error response and help links.
302
 
303
  == Changelog ==
304
 
 
 
 
305
  = 5.3.2 =
306
  * FIX: Bing ping 410 error response
307
  * FIX: Outdated help & forum links
4
  Tags: sitemap, xml sitemap, news sitemap, sitemap.xml, robots.txt, Google, Google News, Yahoo, Bing, Yandex, Baidu, seo, feed, Polylang, WPML, image sitemap
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
+ Tested up to: 6.1
8
+ Stable tag: 5.3.3
9
 
10
  XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache, Polylang and WPML compatible.
11
 
296
 
297
  == Upgrade Notice ==
298
 
299
+ = 5.3.3 =
300
 
301
  Fix Bing ping 410 error response and help links.
302
 
303
  == Changelog ==
304
 
305
+ = 5.3.3 =
306
+ * FIX: Undefined variable + Invalid argument supplied for foreach(), thanks @yankyaw09
307
+
308
  = 5.3.2 =
309
  * FIX: Bing ping 410 error response
310
  * FIX: Outdated help & forum links
xml-sitemap.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: XML Sitemap & Google News
4
  Plugin URI: https://status301.net/wordpress-plugins/xml-sitemap-feed/
5
  Description: Feed the hungry spiders in compliance with the XML Sitemap and Google News protocols. Happy with the results? Please leave me a <strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=XML%20Sitemap%20Feed">tip</a></strong> for continued development and support. Thanks :)
6
- Version: 5.3.2
7
  Text Domain: xml-sitemap-feed
8
  Requires at least: 4.6
9
  Requires PHP: 5.6
@@ -11,7 +11,7 @@ Author: RavanH
11
  Author URI: https://status301.net/
12
  */
13
 
14
- define( 'XMLSF_VERSION', '5.3.2' );
15
  /**
16
  * Copyright 2021 RavanH
17
  * https://status301.net/
@@ -343,20 +343,18 @@ function is_news() {
343
  /*
344
  spl_autoload_register( function( $class ) {
345
 
346
- $namespace = 'Justin\\';
347
- $path = 'src';
348
 
349
  // Bail if the class is not in our namespace.
350
  if ( 0 !== strpos( $class, $namespace ) ) {
351
  return;
352
  }
353
 
354
- // Remove the namespace.
355
- $class = str_replace( $namespace, '', $class );
356
-
357
  // Build the filename.
358
- $file = realpath( __DIR__ . "/{$path}" );
359
- $file = $file . DIRECTORY_SEPARATOR . str_replace( '\\', DIRECTORY_SEPARATOR, $class ) . '.php';
 
 
360
 
361
  // If the file exists for the class name, load it.
362
  if ( file_exists( $file ) ) {
3
  Plugin Name: XML Sitemap & Google News
4
  Plugin URI: https://status301.net/wordpress-plugins/xml-sitemap-feed/
5
  Description: Feed the hungry spiders in compliance with the XML Sitemap and Google News protocols. Happy with the results? Please leave me a <strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=XML%20Sitemap%20Feed">tip</a></strong> for continued development and support. Thanks :)
6
+ Version: 5.3.3
7
  Text Domain: xml-sitemap-feed
8
  Requires at least: 4.6
9
  Requires PHP: 5.6
11
  Author URI: https://status301.net/
12
  */
13
 
14
+ define( 'XMLSF_VERSION', '5.3.3' );
15
  /**
16
  * Copyright 2021 RavanH
17
  * https://status301.net/
343
  /*
344
  spl_autoload_register( function( $class ) {
345
 
346
+ $namespace = 'XMLSF\\';
 
347
 
348
  // Bail if the class is not in our namespace.
349
  if ( 0 !== strpos( $class, $namespace ) ) {
350
  return;
351
  }
352
 
 
 
 
353
  // Build the filename.
354
+ $class = str_replace( $namespace, '', $class );
355
+ $class = strtolower( $class );
356
+ $class = str_replace( '_', '-', $class );
357
+ $file = realpath( __DIR__ ) . DIRECTORY_SEPARATOR . str_replace( '\\', DIRECTORY_SEPARATOR, $class ) . '.php';
358
 
359
  // If the file exists for the class name, load it.
360
  if ( file_exists( $file ) ) {