Version Description
Download this release
Release Info
Developer | labnol |
Plugin | Google XML Sitemap for Videos |
Version | 2.6.1 |
Comparing to | |
See all releases |
Code changes from version 2.6 to 2.6.1
- readme.txt +6 -2
- video-sitemap.php +5 -2
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: labnol
|
3 |
Tags: youtube, xml sitemaps, google sitemaps, videos, seo, sitemaps, video sitemap
|
4 |
Requires at least: 2.9.2
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 2.6
|
7 |
|
8 |
This plugin will help you generate Google Video Sitemaps (XML) for your WordPress blog.
|
9 |
|
@@ -38,6 +38,10 @@ Here's how you can install the plugin:
|
|
38 |
1. Click the "Generate Sitemap" button to create your XML Sitemap for videos.
|
39 |
1. Once you have created your Sitemap, you can submit it to Google using Webmaster Tools.
|
40 |
|
|
|
|
|
|
|
|
|
41 |
== Frequently Asked Questions ==
|
42 |
|
43 |
= How can I submit my video sitemap to Google? =
|
2 |
Contributors: labnol
|
3 |
Tags: youtube, xml sitemaps, google sitemaps, videos, seo, sitemaps, video sitemap
|
4 |
Requires at least: 2.9.2
|
5 |
+
Tested up to: 3.5
|
6 |
+
Stable tag: 2.6.1
|
7 |
|
8 |
This plugin will help you generate Google Video Sitemaps (XML) for your WordPress blog.
|
9 |
|
38 |
1. Click the "Generate Sitemap" button to create your XML Sitemap for videos.
|
39 |
1. Once you have created your Sitemap, you can submit it to Google using Webmaster Tools.
|
40 |
|
41 |
+
== Changelog ==
|
42 |
+
[v2.6.1] Compatible with WordPress 3.5
|
43 |
+
[v2.6.1] Permalinks now use entity escape codes for certain characters.
|
44 |
+
|
45 |
== Frequently Asked Questions ==
|
46 |
|
47 |
= How can I submit my video sitemap to Google? =
|
video-sitemap.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google XML Sitemap for Videos
|
|
4 |
Plugin URI: http://www.labnol.org/software/xml-video-sitemaps-for-google/14085/
|
5 |
Description: This plugin will generate a XML Video Sitemap for your WordPress blog. Open the <a href="tools.php?page=video-sitemap-generate-page">settings page</a> to create your video sitemap.
|
6 |
Author: Amit Agarwal
|
7 |
-
Version: 2.6
|
8 |
Author URI: http://www.labnol.org/
|
9 |
*/
|
10 |
|
@@ -45,6 +45,9 @@ function video_sitemap_generate_page () {
|
|
45 |
return true;
|
46 |
}
|
47 |
|
|
|
|
|
|
|
48 |
|
49 |
function video_sitemap_generate () {
|
50 |
|
@@ -118,7 +121,7 @@ function video_sitemap_loop () {
|
|
118 |
if (preg_match_all ("/youtube.com\/(v\/|watch\?v=|embed\/)([a-zA-Z0-9\-_]*)/", $post->post_content, $matches, PREG_SET_ORDER)) {
|
119 |
|
120 |
$excerpt = ($post->post_excerpt != "") ? $post->post_excerpt : $post->post_title ;
|
121 |
-
$permalink = get_permalink($post->id);
|
122 |
|
123 |
foreach ($matches as $match) {
|
124 |
|
4 |
Plugin URI: http://www.labnol.org/software/xml-video-sitemaps-for-google/14085/
|
5 |
Description: This plugin will generate a XML Video Sitemap for your WordPress blog. Open the <a href="tools.php?page=video-sitemap-generate-page">settings page</a> to create your video sitemap.
|
6 |
Author: Amit Agarwal
|
7 |
+
Version: 2.6.1
|
8 |
Author URI: http://www.labnol.org/
|
9 |
*/
|
10 |
|
45 |
return true;
|
46 |
}
|
47 |
|
48 |
+
function video_EscapeXMLEntities($xml) {
|
49 |
+
return str_replace(array('&', '<', '>', '\'', '"'), array('&', '<', '>', ''', '"'), $xml);
|
50 |
+
}
|
51 |
|
52 |
function video_sitemap_generate () {
|
53 |
|
121 |
if (preg_match_all ("/youtube.com\/(v\/|watch\?v=|embed\/)([a-zA-Z0-9\-_]*)/", $post->post_content, $matches, PREG_SET_ORDER)) {
|
122 |
|
123 |
$excerpt = ($post->post_excerpt != "") ? $post->post_excerpt : $post->post_title ;
|
124 |
+
$permalink = video_EscapeXMLEntities(get_permalink($post->id));
|
125 |
|
126 |
foreach ($matches as $match) {
|
127 |
|