Version Description
- NEW: xmlsf_tags_after, xmlsf_url_after and xmlsf_news_url_after action hooks
- FIX: Taxonomy selection not available to new installs
Download this release
Release Info
Developer | deployer |
Plugin | XML Sitemap & Google News feeds |
Version | 5.2.5 |
Comparing to | |
See all releases |
Code changes from version 5.2.4 to 5.2.5
controllers/class.xmlsf-admin-sitemap.php
CHANGED
@@ -291,9 +291,7 @@ class XMLSF_Admin_Sitemap extends XMLSF_Admin
|
|
291 |
// taxonomies
|
292 |
add_settings_section( 'xml_sitemap_taxonomies_section', /*'<a name="xmlsf"></a>'.__('XML Sitemap','xml-sitemap-feed')*/ '', '', 'xmlsf_taxonomies' );
|
293 |
add_settings_field( 'xmlsf_taxonomy_settings', translate('General'), array($this,'taxonomy_settings_field'), 'xmlsf_taxonomies', 'xml_sitemap_taxonomies_section' );
|
294 |
-
|
295 |
-
if ( apply_filters( 'xmlsf_taxonomies', ! empty( $taxonomies ) ) )
|
296 |
-
add_settings_field( 'xmlsf_taxonomies', __('Taxonomies','xml-sitemap-feed'), array($this,'taxonomies_field'), 'xmlsf_taxonomies', 'xml_sitemap_taxonomies_section' );
|
297 |
|
298 |
add_settings_section( 'xml_sitemap_advanced_section', /*'<a name="xmlsf"></a>'.__('XML Sitemap','xml-sitemap-feed')*/ '', '', 'xmlsf_advanced' );
|
299 |
// custom urls
|
291 |
// taxonomies
|
292 |
add_settings_section( 'xml_sitemap_taxonomies_section', /*'<a name="xmlsf"></a>'.__('XML Sitemap','xml-sitemap-feed')*/ '', '', 'xmlsf_taxonomies' );
|
293 |
add_settings_field( 'xmlsf_taxonomy_settings', translate('General'), array($this,'taxonomy_settings_field'), 'xmlsf_taxonomies', 'xml_sitemap_taxonomies_section' );
|
294 |
+
add_settings_field( 'xmlsf_taxonomies', __('Taxonomies','xml-sitemap-feed'), array($this,'taxonomies_field'), 'xmlsf_taxonomies', 'xml_sitemap_taxonomies_section' );
|
|
|
|
|
295 |
|
296 |
add_settings_section( 'xml_sitemap_advanced_section', /*'<a name="xmlsf"></a>'.__('XML Sitemap','xml-sitemap-feed')*/ '', '', 'xmlsf_advanced' );
|
297 |
// custom urls
|
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.
|
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 |
|
@@ -43,7 +43,7 @@ Please read the FAQ's for info on how to get your articles listed on Google News
|
|
43 |
* Works out-of-the-box, even on **Multisite** installations.
|
44 |
* Optionally include Image tags with caption and title for featured images or attached images.
|
45 |
* Pings Google, Bing & Yahoo on new post publication, once per hour.
|
46 |
-
* Options to define which post types and
|
47 |
* Updates Lastmod on post modification or on comments.
|
48 |
* Set Priority per post type, per taxonomy and per individual post.
|
49 |
* Exclude individual posts and pages.
|
@@ -298,6 +298,10 @@ Bugfixes + Rank Math compatibility warnings.
|
|
298 |
|
299 |
== Changelog ==
|
300 |
|
|
|
|
|
|
|
|
|
301 |
= 5.2.4 =
|
302 |
* NEW Rank Math incompatibility admin warnings
|
303 |
* FIX undefined index
|
@@ -376,7 +380,7 @@ Bugfixes + Rank Math compatibility warnings.
|
|
376 |
* NEW Filters for post types: xmlsf_post_types and xmlsf_news_post_types
|
377 |
* NEW Filters for priority values: xmlsf_post_priority and xmlsf_term_priority
|
378 |
* Removal of Genre, Keywords and Access tags as Google dropped support
|
379 |
-
* Taxonomy term sitemaps speed
|
380 |
* Exclude Woocommerce product_shipping_class taxonomy
|
381 |
* PHP 7.2+ compat: create_function deprecated
|
382 |
* No more domain filtering for custom URLs and sitemaps
|
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.3
|
8 |
+
Stable tag: 5.2.5
|
9 |
|
10 |
XML and Google News Sitemaps to feed the hungry spiders. Multisite, WP Super Cache, Polylang and WPML compatible.
|
11 |
|
43 |
* Works out-of-the-box, even on **Multisite** installations.
|
44 |
* Optionally include Image tags with caption and title for featured images or attached images.
|
45 |
* Pings Google, Bing & Yahoo on new post publication, once per hour.
|
46 |
+
* Options to define which post types and taxonomies get included in the sitemap
|
47 |
* Updates Lastmod on post modification or on comments.
|
48 |
* Set Priority per post type, per taxonomy and per individual post.
|
49 |
* Exclude individual posts and pages.
|
298 |
|
299 |
== Changelog ==
|
300 |
|
301 |
+
= 5.2.5 =
|
302 |
+
* NEW: xmlsf_tags_after, xmlsf_url_after and xmlsf_news_url_after action hooks
|
303 |
+
* FIX: Taxonomy selection not available to new installs
|
304 |
+
|
305 |
= 5.2.4 =
|
306 |
* NEW Rank Math incompatibility admin warnings
|
307 |
* FIX undefined index
|
380 |
* NEW Filters for post types: xmlsf_post_types and xmlsf_news_post_types
|
381 |
* NEW Filters for priority values: xmlsf_post_priority and xmlsf_term_priority
|
382 |
* Removal of Genre, Keywords and Access tags as Google dropped support
|
383 |
+
* Taxonomy term sitemaps speed improvement: get lastmod date from database
|
384 |
* Exclude Woocommerce product_shipping_class taxonomy
|
385 |
* PHP 7.2+ compat: create_function deprecated
|
386 |
* No more domain filtering for custom URLs and sitemaps
|
views/admin/field-sitemap-taxonomy-settings.php
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
</p>
|
28 |
<p>
|
29 |
<label>
|
30 |
-
<?php _e('Maximum per sitemap','xml-sitemap-feed'); ?>
|
31 |
<input type="number" step="100" min="0" max="50000" name="xmlsf_taxonomy_settings[term_limit]" id="xmlsf_taxonomy_term_limit" value="<?php echo ( isset($taxonomy_settings['term_limit']) ? $taxonomy_settings['term_limit'] : '' ); ?>" class="medium-text" />
|
32 |
</label>
|
33 |
</p>
|
27 |
</p>
|
28 |
<p>
|
29 |
<label>
|
30 |
+
<?php _e('Maximum terms per sitemap','xml-sitemap-feed'); ?>
|
31 |
<input type="number" step="100" min="0" max="50000" name="xmlsf_taxonomy_settings[term_limit]" id="xmlsf_taxonomy_term_limit" value="<?php echo ( isset($taxonomy_settings['term_limit']) ? $taxonomy_settings['term_limit'] : '' ); ?>" class="medium-text" />
|
32 |
</label>
|
33 |
</p>
|
views/admin/help-tab-taxonomies.php
CHANGED
@@ -4,7 +4,13 @@
|
|
4 |
<?php echo __('Adjusts the Priority of each taxonomy term based on the relative number of attributed posts.','xml-sitemap-feed'); ?>
|
5 |
</p>
|
6 |
<p>
|
7 |
-
<strong><?php _e( 'Maximum per sitemap', 'xml-sitemap-feed' ); ?></strong>
|
8 |
<br />
|
9 |
<?php _e( 'The absolute maximum allowed is 50.000 per sitemap. Reduce this number if you experience errors or slow sitemaps.', 'xml-sitemap-feed' ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
</p>
|
4 |
<?php echo __('Adjusts the Priority of each taxonomy term based on the relative number of attributed posts.','xml-sitemap-feed'); ?>
|
5 |
</p>
|
6 |
<p>
|
7 |
+
<strong><?php _e( 'Maximum terms per sitemap', 'xml-sitemap-feed' ); ?></strong>
|
8 |
<br />
|
9 |
<?php _e( 'The absolute maximum allowed is 50.000 per sitemap. Reduce this number if you experience errors or slow sitemaps.', 'xml-sitemap-feed' ); ?>
|
10 |
+
<?php _e( 'Terms are ordered by number of posts, starting with the most used terms down to the least used. Terms without any posts will not appear in the sitemap.', 'xml-sitemap-feed' ); ?>
|
11 |
+
</p>
|
12 |
+
<p>
|
13 |
+
<strong><?php _e('Limit to these taxonomies:','xml-sitemap-feed'); ?></strong>
|
14 |
+
<br />
|
15 |
+
<?php _e( 'Select the taxonomies to include in the sitemap index. Select none to automatically include all public taxonomies.', 'xml-sitemap-feed' ); ?>
|
16 |
</p>
|
views/feed-sitemap-news.php
CHANGED
@@ -58,6 +58,7 @@ if ( have_posts() ) :
|
|
58 |
</news:news>
|
59 |
</url>
|
60 |
<?php
|
|
|
61 |
endwhile;
|
62 |
endif;
|
63 |
|
58 |
</news:news>
|
59 |
</url>
|
60 |
<?php
|
61 |
+
do_action( 'xmlsf_news_url_after' );
|
62 |
endwhile;
|
63 |
endif;
|
64 |
|
views/feed-sitemap-post_type.php
CHANGED
@@ -76,9 +76,12 @@ if ( have_posts() ) :
|
|
76 |
<?php
|
77 |
}
|
78 |
endif;
|
|
|
|
|
79 |
?>
|
80 |
</url>
|
81 |
<?php
|
|
|
82 |
endwhile;
|
83 |
endif;
|
84 |
|
76 |
<?php
|
77 |
}
|
78 |
endif;
|
79 |
+
|
80 |
+
do_action( 'xmlsf_tags_after' );
|
81 |
?>
|
82 |
</url>
|
83 |
<?php
|
84 |
+
do_action( 'xmlsf_url_after' );
|
85 |
endwhile;
|
86 |
endif;
|
87 |
|
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/
|
@@ -60,9 +60,16 @@ define( 'XMLSF_VERSION', '5.2.4' );
|
|
60 |
* ACTIONS
|
61 |
* xmlsf_ping -> Fires hen a search engine has been pinged. Carries four arguments:
|
62 |
* search engine (google|bing), sitemap name, full ping url, ping repsonse code.
|
|
|
|
|
|
|
|
|
|
|
63 |
* xmlsf_news_tags_after -> Fired inside the Google News Sitemap loop at the end of the news
|
64 |
* tags, just before each closing </news:news> is generated. Can be used to
|
65 |
* echo custom tags or trigger another action in the background.
|
|
|
|
|
66 |
* xmlsf_news_settings_before -> Fired before the Google News Sitemap settings form
|
67 |
* xmlsf_news_settings_after -> Fired after the Google News Sitemap settings form
|
68 |
*
|
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.5
|
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.5' );
|
15 |
|
16 |
/* Copyright 2019 RavanH
|
17 |
http://status301.net/
|
60 |
* ACTIONS
|
61 |
* xmlsf_ping -> Fires hen a search engine has been pinged. Carries four arguments:
|
62 |
* search engine (google|bing), sitemap name, full ping url, ping repsonse code.
|
63 |
+
* xmlsf_tags_after -> Fired inside the XML Sitemap loop at the end of the tags,
|
64 |
+
* just before each closing </url> is generated. Can be used to
|
65 |
+
* echo custom tags or trigger another action in the background.
|
66 |
+
* xmlsf_url_after -> Fired inside the XML Sitemap loop after each url node.
|
67 |
+
* Can be used to append alternative url or trigger another action in the background.
|
68 |
* xmlsf_news_tags_after -> Fired inside the Google News Sitemap loop at the end of the news
|
69 |
* tags, just before each closing </news:news> is generated. Can be used to
|
70 |
* echo custom tags or trigger another action in the background.
|
71 |
+
* xmlsf_news_url_after -> Fired inside the Google News Sitemap loop after each news url node.
|
72 |
+
* Can be used to append alternative url or trigger another action in the background.
|
73 |
* xmlsf_news_settings_before -> Fired before the Google News Sitemap settings form
|
74 |
* xmlsf_news_settings_after -> Fired after the Google News Sitemap settings form
|
75 |
*
|