XML Sitemap & Google News feeds - Version 4.8.2

Version Description

Fix get_lastpostdate array/string and restore pre PHP5.4 compatibility (popular request)

=

Download this release

Release Info

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

Code changes from version 4.8 to 4.8.2

includes/class-xmlsitemapfeed.php CHANGED
@@ -272,7 +272,7 @@ class XMLSitemapFeed {
272
  // news sitemap tags settings
273
  $this->defaults['news_tags'] = array(
274
  'name' => '',
275
- 'post_type' => ['post'],
276
  'categories' => '',
277
  'image' => 'featured',
278
  'access' => array(
@@ -1220,12 +1220,8 @@ class XMLSitemapFeed {
1220
  define('DONOTCACHEDB', true);
1221
 
1222
  // set up query filters
1223
- if ( get_lastpostdate('gmt', $news_post_type) > date('Y-m-d H:i:s', strtotime('-48 hours')) ) {
1224
- add_filter('post_limits', array($this, 'filter_news_limits'));
1225
- add_filter('posts_where', array($this, 'filter_news_where'), 10, 1);
1226
- } else {
1227
- add_filter('post_limits', array($this, 'filter_no_news_limits'));
1228
- }
1229
 
1230
  // post type
1231
  $request['post_type'] = $news_post_type;
272
  // news sitemap tags settings
273
  $this->defaults['news_tags'] = array(
274
  'name' => '',
275
+ 'post_type' => array('post'),
276
  'categories' => '',
277
  'image' => 'featured',
278
  'access' => array(
1220
  define('DONOTCACHEDB', true);
1221
 
1222
  // set up query filters
1223
+ add_filter('post_limits', array($this, 'filter_news_limits'));
1224
+ add_filter('posts_where', array($this, 'filter_news_where'), 10, 1);
 
 
 
 
1225
 
1226
  // post type
1227
  $request['post_type'] = $news_post_type;
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 3.2
6
  Tested up to: 4.9
7
- Stable tag: 4.8
8
 
9
  XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache, Polylang and WPML compatible.
10
 
@@ -271,11 +271,15 @@ Yes. In fact, it has been designed for it. Tested on WPMU 2.9.2 and WPMS 3+ both
271
 
272
  == Upgrade Notice ==
273
 
274
- = 4.8 =
275
- New conditional functions, ping URL, and several bug fixes.
276
 
277
  == Changelog ==
278
 
 
 
 
 
279
  = 4.8 =
280
  * NEW: Conditional functions is_sitemap() and is_news()
281
  * code cleanup and annotation
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: 3.2
6
  Tested up to: 4.9
7
+ Stable tag: 4.8.2
8
 
9
  XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache, Polylang and WPML compatible.
10
 
271
 
272
  == Upgrade Notice ==
273
 
274
+ = 4.8.2 =
275
+ Fix get_lastpostdate array/string and restore pre PHP 5.4 compatibility (popular request)
276
 
277
  == Changelog ==
278
 
279
+ = 4.8.2 =
280
+ * fix get_lastpostdate array/string
281
+ * restore pre PHP 5.4 compatibility (popular request)
282
+
283
  = 4.8 =
284
  * NEW: Conditional functions is_sitemap() and is_news()
285
  * code cleanup and annotation
xml-sitemap.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: XML Sitemap & Google News feeds
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&item_number=4%2e0&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us">tip</a></strong> for continued development and support. Thanks :)
6
  Text Domain: xml-sitemap-feed
7
- Version: 4.8
8
  Requires PHP: 5.6
9
  Author: RavanH
10
  Author URI: http://status301.net/
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&item_number=4%2e0&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us">tip</a></strong> for continued development and support. Thanks :)
6
  Text Domain: xml-sitemap-feed
7
+ Version: 4.8.2
8
  Requires PHP: 5.6
9
  Author: RavanH
10
  Author URI: http://status301.net/