Version Description
WPML and PHP 5.3 compatibility.
=
Download this release
Release Info
Developer | RavanH |
Plugin | XML Sitemap & Google News feeds |
Version | 4.7.1 |
Comparing to | |
See all releases |
Code changes from version 4.7 to 4.7.1
- includes/class-xmlsitemapfeed.php +5 -4
- terms +0 -7
- xml-sitemap.php +2 -2
includes/class-xmlsitemapfeed.php
CHANGED
@@ -18,8 +18,9 @@ class XMLSitemapFeed {
|
|
18 |
// Database options prefix
|
19 |
private $prefix = 'xmlsf_';
|
20 |
|
21 |
-
// Timezone
|
22 |
private $timezone = null;
|
|
|
23 |
|
24 |
// Flushed flag
|
25 |
private $yes_mother = false;
|
@@ -639,7 +640,7 @@ class XMLSitemapFeed {
|
|
639 |
{
|
640 |
$exclude = array();
|
641 |
|
642 |
-
if ( $post_type == 'page'
|
643 |
global $polylang,$sitepress; // Polylang and WPML compat
|
644 |
if ( isset($polylang) && is_object($polylang) && isset($polylang->model) && is_object($polylang->model) && method_exists($polylang->model, 'get_translations') )
|
645 |
$exclude += $polylang->model->get_translations('post', $id);
|
@@ -700,7 +701,7 @@ class XMLSitemapFeed {
|
|
700 |
if ( empty($this->blog_language) ) {
|
701 |
// get site language for default language
|
702 |
$blog_language = convert_chars(strip_tags(get_bloginfo('language')));
|
703 |
-
$allowed =
|
704 |
if ( !in_array($blog_language,$allowed) ) {
|
705 |
// bloginfo_rss('language') returns improper format so
|
706 |
// we explode on hyphen and use only first part.
|
@@ -1185,7 +1186,7 @@ class XMLSitemapFeed {
|
|
1185 |
}
|
1186 |
|
1187 |
// upgrade pings
|
1188 |
-
if ( $pong = get_option( $this->prefix.'pong' )
|
1189 |
$ping = $this->get_ping();
|
1190 |
foreach ( $pong as $se => $arr) {
|
1191 |
if ( is_array( $arr ) ) {
|
18 |
// Database options prefix
|
19 |
private $prefix = 'xmlsf_';
|
20 |
|
21 |
+
// Timezone and default language
|
22 |
private $timezone = null;
|
23 |
+
private $blog_language = null;
|
24 |
|
25 |
// Flushed flag
|
26 |
private $yes_mother = false;
|
640 |
{
|
641 |
$exclude = array();
|
642 |
|
643 |
+
if ( $post_type == 'page' and $id = get_option('page_on_front') ) { // use 'and' here for precedence of the assignement operator, thanks @kitchin
|
644 |
global $polylang,$sitepress; // Polylang and WPML compat
|
645 |
if ( isset($polylang) && is_object($polylang) && isset($polylang->model) && is_object($polylang->model) && method_exists($polylang->model, 'get_translations') )
|
646 |
$exclude += $polylang->model->get_translations('post', $id);
|
701 |
if ( empty($this->blog_language) ) {
|
702 |
// get site language for default language
|
703 |
$blog_language = convert_chars(strip_tags(get_bloginfo('language')));
|
704 |
+
$allowed = array('zh-cn','zh-tw');
|
705 |
if ( !in_array($blog_language,$allowed) ) {
|
706 |
// bloginfo_rss('language') returns improper format so
|
707 |
// we explode on hyphen and use only first part.
|
1186 |
}
|
1187 |
|
1188 |
// upgrade pings
|
1189 |
+
if ( $pong = get_option( $this->prefix.'pong' ) and is_array($pong) ) { // use 'and' here for precedence of the assignement operator, thanks @kitchin
|
1190 |
$ping = $this->get_ping();
|
1191 |
foreach ( $pong as $se => $arr) {
|
1192 |
if ( is_array( $arr ) ) {
|
terms
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
** Terminology **
|
2 |
-
|
3 |
-
News Source (=site)
|
4 |
-
News Source Details (= all news sitemap tags)
|
5 |
-
Source labels (= Genres/access tags)
|
6 |
-
Site name = Publication name
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.7
|
8 |
Author: RavanH
|
9 |
Author URI: http://status301.net/
|
10 |
*/
|
@@ -50,7 +50,7 @@ if ( ! defined( 'WPINC' ) ) die;
|
|
50 |
* CONSTANTS
|
51 |
* -------------------- */
|
52 |
|
53 |
-
define('XMLSF_VERSION', '4.7');
|
54 |
|
55 |
define('XMLSF_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
56 |
|
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.7.1
|
8 |
Author: RavanH
|
9 |
Author URI: http://status301.net/
|
10 |
*/
|
50 |
* CONSTANTS
|
51 |
* -------------------- */
|
52 |
|
53 |
+
define('XMLSF_VERSION', '4.7.1');
|
54 |
|
55 |
define('XMLSF_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
56 |
|