Version Description
Download this release
Release Info
Developer | labnol |
Plugin | Google XML Sitemap for Images |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- image-sitemap.php +5 -3
- readme.txt +3 -1
image-sitemap.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google XML Sitemap for Images
|
|
4 |
Plugin URI: http://www.labnol.org/internet/google-image-sitemap-for-wordpress/14125/
|
5 |
Description: This plugin will generate a XML Image Sitemap for your WordPress blog. Open the <a href="tools.php?page=image-sitemap-generate-page">settings page</a> to create your image sitemap.
|
6 |
Author: Amit Agarwal
|
7 |
-
Version: 2.1.
|
8 |
Author URI: http://www.labnol.org/
|
9 |
*/
|
10 |
|
@@ -108,8 +108,10 @@ function image_sitemap_loop () {
|
|
108 |
|
109 |
foreach($images as $k => $v) {
|
110 |
$permalink = get_permalink($k);
|
111 |
-
|
112 |
-
|
|
|
|
|
113 |
}
|
114 |
$xml .= "\n</urlset>";
|
115 |
}
|
4 |
Plugin URI: http://www.labnol.org/internet/google-image-sitemap-for-wordpress/14125/
|
5 |
Description: This plugin will generate a XML Image Sitemap for your WordPress blog. Open the <a href="tools.php?page=image-sitemap-generate-page">settings page</a> to create your image sitemap.
|
6 |
Author: Amit Agarwal
|
7 |
+
Version: 2.1.3
|
8 |
Author URI: http://www.labnol.org/
|
9 |
*/
|
10 |
|
108 |
|
109 |
foreach($images as $k => $v) {
|
110 |
$permalink = get_permalink($k);
|
111 |
+
if ( ! empty ( $permalink ) ) {
|
112 |
+
$img = "<image:image><image:loc>".implode("</image:loc></image:image><image:image><image:loc>", $v)."</image:loc></image:image>";
|
113 |
+
$xml .= "<url><loc>" . EscapeXMLEntities($permalink) . "</loc>" . $img . "</url>";
|
114 |
+
}
|
115 |
}
|
116 |
$xml .= "\n</urlset>";
|
117 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: labnol
|
|
3 |
Tags: xml sitemaps, google sitemaps, bing, images, seo, search engines, sitemap, pictures
|
4 |
Requires at least: 2.9.2
|
5 |
Tested up to: 3.5
|
6 |
-
Stable tag: 2.1.
|
7 |
|
8 |
The Image Sitemap plugin will generate an XML Sitemap for Images that exist in your WordPress blog.
|
9 |
|
@@ -36,6 +36,8 @@ Here's how you can install the plugin:
|
|
36 |
1. Once you have created your Sitemap, you can submit it to Google using Webmaster Tools.
|
37 |
|
38 |
== Changelog ==
|
|
|
|
|
39 |
[v2.1.2] Compatible with WordPress 3.5
|
40 |
|
41 |
[v2.1] Data values (including URLs) now use entity escape codes for certain characters.
|
3 |
Tags: xml sitemaps, google sitemaps, bing, images, seo, search engines, sitemap, pictures
|
4 |
Requires at least: 2.9.2
|
5 |
Tested up to: 3.5
|
6 |
+
Stable tag: 2.1.3
|
7 |
|
8 |
The Image Sitemap plugin will generate an XML Sitemap for Images that exist in your WordPress blog.
|
9 |
|
36 |
1. Once you have created your Sitemap, you can submit it to Google using Webmaster Tools.
|
37 |
|
38 |
== Changelog ==
|
39 |
+
[v2.1.3] Minor fix related to permalinks that could be empty. Thanks Andrea Gianfreda for the tip.
|
40 |
+
|
41 |
[v2.1.2] Compatible with WordPress 3.5
|
42 |
|
43 |
[v2.1] Data values (including URLs) now use entity escape codes for certain characters.
|