Version Description
- FIX Encoding in xml image sitemaps
Download this release
Release Info
Developer | rainbowgeek |
Plugin | SEOPress |
Version | 2.9.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.9.2 to 2.9.2.1
- inc/functions/sitemap/template-xml-sitemaps-single.php +3 -3
- readme.txt +3 -1
- seopress.php +2 -2
inc/functions/sitemap/template-xml-sitemaps-single.php
CHANGED
@@ -96,7 +96,7 @@ function seopress_xml_sitemap_single() {
|
|
96 |
}
|
97 |
|
98 |
//Post Thumbnail
|
99 |
-
$post_thumbnail =
|
100 |
|
101 |
if ((isset($images) && !empty ($images) && $images->length>=1) || (isset($galleries) && !empty($galleries)) || (isset($product) && !empty($product_img)) || $post_thumbnail !='') {
|
102 |
|
@@ -132,7 +132,7 @@ function seopress_xml_sitemap_single() {
|
|
132 |
$seopress_sitemaps .= '<image:image>';
|
133 |
$seopress_sitemaps .= "\n";
|
134 |
$seopress_sitemaps .= '<image:loc>';
|
135 |
-
$seopress_sitemaps .= '<![CDATA['.urldecode(esc_attr(wp_filter_nohtml_kses(
|
136 |
$seopress_sitemaps .= '</image:loc>';
|
137 |
$seopress_sitemaps .= "\n";
|
138 |
$seopress_sitemaps .= '</image:image>';
|
@@ -145,7 +145,7 @@ function seopress_xml_sitemap_single() {
|
|
145 |
$seopress_sitemaps .= '<image:image>';
|
146 |
$seopress_sitemaps .= "\n";
|
147 |
$seopress_sitemaps .= '<image:loc>';
|
148 |
-
$seopress_sitemaps .= '<![CDATA['.esc_attr(wp_filter_nohtml_kses(
|
149 |
$seopress_sitemaps .= '</image:loc>';
|
150 |
$seopress_sitemaps .= "\n";
|
151 |
$seopress_sitemaps .= '</image:image>';
|
96 |
}
|
97 |
|
98 |
//Post Thumbnail
|
99 |
+
$post_thumbnail = get_the_post_thumbnail_url($post);
|
100 |
|
101 |
if ((isset($images) && !empty ($images) && $images->length>=1) || (isset($galleries) && !empty($galleries)) || (isset($product) && !empty($product_img)) || $post_thumbnail !='') {
|
102 |
|
132 |
$seopress_sitemaps .= '<image:image>';
|
133 |
$seopress_sitemaps .= "\n";
|
134 |
$seopress_sitemaps .= '<image:loc>';
|
135 |
+
$seopress_sitemaps .= '<![CDATA['.urldecode(esc_attr(wp_filter_nohtml_kses($url))).']]>';
|
136 |
$seopress_sitemaps .= '</image:loc>';
|
137 |
$seopress_sitemaps .= "\n";
|
138 |
$seopress_sitemaps .= '</image:image>';
|
145 |
$seopress_sitemaps .= '<image:image>';
|
146 |
$seopress_sitemaps .= "\n";
|
147 |
$seopress_sitemaps .= '<image:loc>';
|
148 |
+
$seopress_sitemaps .= '<![CDATA['.esc_attr(wp_filter_nohtml_kses(wp_get_attachment_url( $product_attachment_id ))).']]>';
|
149 |
$seopress_sitemaps .= '</image:loc>';
|
150 |
$seopress_sitemaps .= "\n";
|
151 |
$seopress_sitemaps .= '</image:image>';
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: seo, search engine optimization, meta title, open graph, content analysis,
|
|
6 |
Requires at least: 4.4+
|
7 |
Tested up to: 4.9
|
8 |
Requires PHP: 5.4
|
9 |
-
Stable tag: 2.9.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -159,6 +159,8 @@ Subscribe on <a href="https://www.seopress.org/" target="_blank">seopress.org</a
|
|
159 |
44. Structured Data Types metaboxe in post, page, custom post type (PRO)
|
160 |
|
161 |
== Changelog ==
|
|
|
|
|
162 |
= 2.9.2 =
|
163 |
* FIX Encoding some characters in xml image sitemaps & og:image
|
164 |
= 2.9.1 =
|
6 |
Requires at least: 4.4+
|
7 |
Tested up to: 4.9
|
8 |
Requires PHP: 5.4
|
9 |
+
Stable tag: 2.9.2.1
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
159 |
44. Structured Data Types metaboxe in post, page, custom post type (PRO)
|
160 |
|
161 |
== Changelog ==
|
162 |
+
= 2.9.2.1 =
|
163 |
+
* FIX Encoding in xml image sitemaps
|
164 |
= 2.9.2 =
|
165 |
* FIX Encoding some characters in xml image sitemaps & og:image
|
166 |
= 2.9.1 =
|
seopress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SEOPress
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: The best SEO plugin.
|
6 |
-
Version: 2.9.2
|
7 |
Author: Benjamin DENIS
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
@@ -55,7 +55,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
|
|
55 |
//Define
|
56 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
57 |
|
58 |
-
define( 'SEOPRESS_VERSION', '2.9.2' );
|
59 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
60 |
|
61 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
3 |
Plugin Name: SEOPress
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: The best SEO plugin.
|
6 |
+
Version: 2.9.2.1
|
7 |
Author: Benjamin DENIS
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
55 |
//Define
|
56 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
57 |
|
58 |
+
define( 'SEOPRESS_VERSION', '2.9.2.1' );
|
59 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
60 |
|
61 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|