XML Sitemap & Google News feeds - Version 4.6.3

Version Description

  • NEW: filter xmlsf_custom_sitemaps
  • BUGFIX: empty custom urls sitemap
Download this release

Release Info

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

Code changes from version 4.6.2 to 4.6.3

Files changed (3) hide show
  1. includes/core.php +11 -10
  2. readme.txt +13 -8
  3. xml-sitemap.php +4 -3
includes/core.php CHANGED
@@ -278,25 +278,26 @@ class XMLSitemapFeed {
278
 
279
  public function get_custom_sitemaps()
280
  {
281
- $return = $this->get_option('custom_sitemaps');
282
-
283
  // make sure it's an array we are returning
284
- if(!empty($return)) {
285
- if(is_array($return))
286
- return $return;
287
- else
288
- return explode("\n",$return);
289
  } else {
290
- return array();
291
  }
 
292
  }
293
 
294
  public function get_urls()
295
  {
296
  $urls = $this->get_option('urls');
297
  // make sure it's an array we are returning
298
- $return = ( !is_array($urls) ) ? explode( "\n", $urls ) : $urls;
299
- return apply_filters( 'xmlsf_get_urls', $return );
 
 
 
 
300
  }
301
 
302
  public function get_domains()
278
 
279
  public function get_custom_sitemaps()
280
  {
281
+ $urls = $this->get_option('custom_sitemaps');
 
282
  // make sure it's an array we are returning
283
+ if(!empty($urls)) {
284
+ $return = ( !is_array($urls) ) ? explode( "\n", $urls ) : $urls;
 
 
 
285
  } else {
286
+ $return = array();
287
  }
288
+ return apply_filters( 'xmlsf_custom_sitemaps', $return );
289
  }
290
 
291
  public function get_urls()
292
  {
293
  $urls = $this->get_option('urls');
294
  // make sure it's an array we are returning
295
+ if(!empty($urls)) {
296
+ $return = ( !is_array($urls) ) ? explode( "\n", $urls ) : $urls;
297
+ } else {
298
+ $return = array();
299
+ }
300
+ return apply_filters( 'xmlsf_custom_urls', $return );
301
  }
302
 
303
  public function get_domains()
readme.txt CHANGED
@@ -1,16 +1,16 @@
1
  === XML Sitemap & Google News feeds ===
2
  Contributors: RavanH
3
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=XML%20Sitemap%20Feed&item_number=3%2e8&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us
4
- Tags: sitemap, xml sitemap, news sitemap, sitemap.xml, robots.txt, Google, Google News, Yahoo, Bing, , Yandex, Baidu, seo, feed, polylang, image sitemap
5
  Requires at least: 3.2
6
  Tested up to: 4.5
7
- Stable tag: 4.6.2
8
 
9
- XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache and Polylang compatible.
10
 
11
  == Description ==
12
 
13
- This plugin dynamically creates feeds that comply with the **XML Sitemap** and the **Google News Sitemap** protocol. **Multisite** and **Polylang** compatible and there are no files created. Options can be found on **Settings > Reading** to control which sitemaps, which post and taxonomy types are included, how priority is calculated, who to ping and set additional robots.txt rules.
14
 
15
  The main advantage of this plugin over other XML Sitemap plugins is **simplicity**. No need to change file or folder permissions, move files or spend time tweaking difficult plugin options.
16
 
@@ -52,7 +52,7 @@ Please read the FAQ's for info on how to get your articles listed on Google News
52
 
53
  **More**
54
 
55
- * Compatible with multi-lingual sites using **Polylang** to allow all languages to be indexed equally.
56
  * Option to add new robots.txt rules. These can be used to further control (read: limit) the indexation of various parts of your site and subsequent spread of pagerank accross your sites pages.
57
  * Includes XLS stylesheets for human readable sitemaps.
58
 
@@ -294,11 +294,16 @@ Thanks for sharing your translation :)
294
 
295
  == Upgrade Notice ==
296
 
297
- = 4.6.3 =
298
- New filter xmlsf_custom_sitemaps, custom urls bugfix.
299
 
300
  == Changelog ==
301
 
 
 
 
 
 
302
  = 4.6.3 =
303
  * NEW: filter xmlsf_custom_sitemaps
304
  * BUGFIX: empty custom urls sitemap
1
  === XML Sitemap & Google News feeds ===
2
  Contributors: RavanH
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=XML%20Sitemap%20Feed
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.5
7
+ Stable tag: 4.6.3
8
 
9
+ XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache, Polylang and WPML compatible.
10
 
11
  == Description ==
12
 
13
+ This plugin dynamically creates feeds that comply with the **XML Sitemap** and the **Google News Sitemap** protocol. **Multisite**, **Polylang** and **WPML** compatible and there are no files created. Options can be found on **Settings > Reading** to control which sitemaps, which post and taxonomy types are included, how priority is calculated, who to ping and set additional robots.txt rules.
14
 
15
  The main advantage of this plugin over other XML Sitemap plugins is **simplicity**. No need to change file or folder permissions, move files or spend time tweaking difficult plugin options.
16
 
52
 
53
  **More**
54
 
55
+ * Compatible with multi-lingual sites using **Polylang** or **WPML** to allow all languages to be indexed equally.
56
  * Option to add new robots.txt rules. These can be used to further control (read: limit) the indexation of various parts of your site and subsequent spread of pagerank accross your sites pages.
57
  * Includes XLS stylesheets for human readable sitemaps.
58
 
294
 
295
  == Upgrade Notice ==
296
 
297
+ = 4.7 =
298
+ WPML compatibility.
299
 
300
  == Changelog ==
301
 
302
+ = 4.7 =
303
+ * WPML compatibility
304
+ * FIX: News Sitemap chinese language tag
305
+ * FIX: flush rules on plugin re-activation
306
+
307
  = 4.6.3 =
308
  * NEW: filter xmlsf_custom_sitemaps
309
  * BUGFIX: empty custom urls sitemap
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.6.2
8
  Author: RavanH
9
  Author URI: http://status301.net/
10
  */
@@ -33,7 +33,8 @@ Author URI: http://status301.net/
33
  * Can be true or false.
34
  * the_title_xmlsitemap -> Filters the Google News publication name, title and keywords
35
  * plus the Image title and caption tags
36
- * xmlsf_get_urls -> Filters the urls array
 
37
  *
38
  * ACTIONS
39
  * xmlsf_news_tags_after -> Fired inside the Google News Sitemap loop at the end of the news
@@ -49,7 +50,7 @@ if ( ! defined( 'WPINC' ) ) die;
49
  * CONSTANTS
50
  * -------------------- */
51
 
52
- define('XMLSF_VERSION', '4.6.1');
53
 
54
  define('XMLSF_PLUGIN_BASENAME', plugin_basename(__FILE__));
55
 
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.6.3
8
  Author: RavanH
9
  Author URI: http://status301.net/
10
  */
33
  * Can be true or false.
34
  * the_title_xmlsitemap -> Filters the Google News publication name, title and keywords
35
  * plus the Image title and caption tags
36
+ * xmlsf_custom_urls -> Filters the custom urls array
37
+ * xmlsf_custom_sitemaps -> Filters the custom sitemaps array
38
  *
39
  * ACTIONS
40
  * xmlsf_news_tags_after -> Fired inside the Google News Sitemap loop at the end of the news
50
  * CONSTANTS
51
  * -------------------- */
52
 
53
+ define('XMLSF_VERSION', '4.6.3');
54
 
55
  define('XMLSF_PLUGIN_BASENAME', plugin_basename(__FILE__));
56