XML Sitemap & Google News feeds - Version 5.2.1

Version Description

= 5.2.2 =

Bugfix release.

Download this release

Release Info

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

Code changes from version 5.2 to 5.2.1

controllers/class.xmlsf-sitemap-news.php CHANGED
@@ -59,7 +59,7 @@ class XMLSF_Sitemap_News
59
  if ( ! empty( $_POST['_xmlsf_news_exclude'] ) ) return;
60
  } else {
61
  // fall back on exclude meta data from DB whic may be outdated (see bug)
62
- if ( ! empty( get_post_meta( $post->ID, '_xmlsf_news_exclude' ) ) ) return;
63
  }
64
 
65
  $news_tags = (array) get_option('xmlsf_news_tags');
59
  if ( ! empty( $_POST['_xmlsf_news_exclude'] ) ) return;
60
  } else {
61
  // fall back on exclude meta data from DB whic may be outdated (see bug)
62
+ if ( get_post_meta( $post->ID, '_xmlsf_news_exclude' ) ) return;
63
  }
64
 
65
  $news_tags = (array) get_option('xmlsf_news_tags');
controllers/class.xmlsf-sitemap.php CHANGED
@@ -90,7 +90,7 @@ class XMLSF_Sitemap
90
  if ( ! empty( $_POST['_xmlsf_exclude'] ) ) return;
91
  } else {
92
  // fall back on exclude meta data from DB whic may be outdated (see bug)
93
- if ( ! empty( get_post_meta( $post->ID, '_xmlsf_exclude' ) ) ) return;
94
  }
95
 
96
  $ping = (array) get_option( 'xmlsf_ping', array() );
90
  if ( ! empty( $_POST['_xmlsf_exclude'] ) ) return;
91
  } else {
92
  // fall back on exclude meta data from DB whic may be outdated (see bug)
93
+ if ( get_post_meta( $post->ID, '_xmlsf_exclude' ) ) return;
94
  }
95
 
96
  $ping = (array) get_option( 'xmlsf_ping', array() );
models/class.xmlsf-admin-sitemap-sanitize.php CHANGED
@@ -124,7 +124,7 @@ class XMLSF_Admin_Sitemap_Sanitize
124
  if ( empty($new) )
125
  return '';
126
 
127
- $input = explode( PHP_EOL, sanitize_textarea_field( $new ) );
128
 
129
  // build sanitized output
130
  $sanitized = array();
124
  if ( empty($new) )
125
  return '';
126
 
127
+ $input = explode( PHP_EOL, strip_tags( $new ) );
128
 
129
  // build sanitized output
130
  $sanitized = array();
models/functions.public-sitemap.php CHANGED
@@ -463,33 +463,6 @@ function xmlsf_sitemap_parse_request( $request ) {
463
  return $request;
464
  }
465
 
466
- /**
467
- * Get archives from wp_cache
468
- *
469
- * @param string $post_type
470
- * @param string $type
471
- *
472
- * @return array
473
- */
474
- function xmlsf_cache_get_archives( $query ) {
475
-
476
- global $wpdb;
477
-
478
- $key = md5($query);
479
- $cache = wp_cache_get( 'xmlsf_get_archives' , 'general');
480
-
481
- if ( !isset( $cache[ $key ] ) ) {
482
- $arcresults = $wpdb->get_results($query);
483
- $cache[ $key ] = $arcresults;
484
- wp_cache_set( 'xmlsf_get_archives', $cache, 'general' );
485
- } else {
486
- $arcresults = $cache[ $key ];
487
- }
488
-
489
- return $arcresults;
490
-
491
- }
492
-
493
  /* -------------------------------------
494
  * MISSING WORDPRESS FUNCTIONS
495
  * ------------------------------------- */
463
  return $request;
464
  }
465
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  /* -------------------------------------
467
  * MISSING WORDPRESS FUNCTIONS
468
  * ------------------------------------- */
models/functions.sitemap.php CHANGED
@@ -86,6 +86,33 @@ function xmlsf_get_archives( $post_type = 'post', $type = '' ) {
86
 
87
  }
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  /**
90
  * Get taxonomies
91
  * Returns an array of taxonomy names to be included in the index
86
 
87
  }
88
 
89
+ /**
90
+ * Get archives from wp_cache
91
+ *
92
+ * @param string $post_type
93
+ * @param string $type
94
+ *
95
+ * @return array
96
+ */
97
+ function xmlsf_cache_get_archives( $query ) {
98
+
99
+ global $wpdb;
100
+
101
+ $key = md5($query);
102
+ $cache = wp_cache_get( 'xmlsf_get_archives' , 'general');
103
+
104
+ if ( !isset( $cache[ $key ] ) ) {
105
+ $arcresults = $wpdb->get_results($query);
106
+ $cache[ $key ] = $arcresults;
107
+ wp_cache_set( 'xmlsf_get_archives', $cache, 'general' );
108
+ } else {
109
+ $arcresults = $cache[ $key ];
110
+ }
111
+
112
+ return $arcresults;
113
+
114
+ }
115
+
116
  /**
117
  * Get taxonomies
118
  * Returns an array of taxonomy names to be included in the index
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: sitemap, xml sitemap, news sitemap, sitemap.xml, robots.txt, Google, Googl
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 5.2
8
- Stable tag: 5.2
9
 
10
  XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache, Polylang and WPML compatible.
11
 
@@ -291,13 +291,19 @@ Yes. In fact, it has been designed for it. Tested on WPMU 2.9.2 and WPMS 3+ both
291
 
292
  == Upgrade Notice ==
293
 
294
- = 5.2 =
295
 
296
- Major DB query reduction and speed improvements. Bugfixes.
297
 
298
 
299
  == Changelog ==
300
 
 
 
 
 
 
 
301
  = 5.2 =
302
  * Image query optimization and meta caching
303
  * Last comment date meta caching
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 5.2
8
+ Stable tag: 5.2.1
9
 
10
  XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache, Polylang and WPML compatible.
11
 
291
 
292
  == Upgrade Notice ==
293
 
294
+ = 5.2.2 =
295
 
296
+ Bugfix release.
297
 
298
 
299
  == Changelog ==
300
 
301
+ = 5.2.2 =
302
+ * FIX invalid date format on some PHP versions
303
+ * FIX Can't use function return value in write context
304
+ * FIX non-cyrillic URLs stripped from External Web Pages field
305
+ * FIX Call to undefined function xmlsf_cache_get_archives()
306
+
307
  = 5.2 =
308
  * Image query optimization and meta caching
309
  * Last comment date meta caching
xml-sitemap.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: XML Sitemap & Google News
4
  Plugin URI: http://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.2
7
  Text Domain: xml-sitemap-feed
8
  Requires at least: 4.6
9
  Requires PHP: 5.4
@@ -11,7 +11,7 @@ Author: RavanH
11
  Author URI: http://status301.net/
12
  */
13
 
14
- define( 'XMLSF_VERSION', '5.2' );
15
 
16
  /* Copyright 2019 RavanH
17
  http://status301.net/
3
  Plugin Name: XML Sitemap & Google News
4
  Plugin URI: http://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.2.1
7
  Text Domain: xml-sitemap-feed
8
  Requires at least: 4.6
9
  Requires PHP: 5.4
11
  Author URI: http://status301.net/
12
  */
13
 
14
+ define( 'XMLSF_VERSION', '5.2.1' );
15
 
16
  /* Copyright 2019 RavanH
17
  http://status301.net/