Google XML Sitemap for Videos - Version 2.3.1

Version Description

  • added - Support for IFRAME based YouTube embeds
  • fixed - Improved discovery code for YouTube videos
  • added - The plugin ensures that no video is included twice in the XML sitemap
Download this release

Release Info

Developer labnol
Plugin Icon wp plugin Google XML Sitemap for Videos
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.2.1 to 2.3.1

Files changed (2) hide show
  1. readme.txt +2 -2
  2. video-sitemap.php +2 -2
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.1.2
6
- Stable tag: 2.3
7
8
This plugin will help you generate Google Video Sitemaps (XML) for your WordPress blog.
9
@@ -62,7 +62,7 @@ The Sitemaps protocol enables you to let search engines know what content you wo
62
63
== Changelog ==
64
65
- = 2.3 =
66
* added - Support for IFRAME based YouTube embeds
67
* fixed - Improved discovery code for YouTube videos
68
* added - The plugin ensures that no video is included twice in the XML sitemap
3
Tags: youtube, xml sitemaps, google sitemaps, videos, seo, sitemaps, video sitemap
4
Requires at least: 2.9.2
5
Tested up to: 3.1.2
6
+ Stable tag: 2.3.1
7
8
This plugin will help you generate Google Video Sitemaps (XML) for your WordPress blog.
9
62
63
== Changelog ==
64
65
+ = 2.3.1 =
66
* added - Support for IFRAME based YouTube embeds
67
* fixed - Improved discovery code for YouTube videos
68
* added - The plugin ensures that no video is included twice in the XML sitemap
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.3
8
Author URI: http://www.labnol.org/
9
*/
10
@@ -111,7 +111,7 @@ function video_sitemap_loop () {
111
$videos = array();
112
113
foreach ($posts as $post) {
114
- if (preg_match_all ("/youtube.com\/(v\/|watch\?v=|embed\/)([a-zA-Z0-9\-_]*)/", $x, $matches, PREG_SET_ORDER)) {
115
116
$excerpt = ($post->post_excerpt != "") ? $post->post_excerpt : $post->post_title ;
117
$permalink = get_permalink($post->id);
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.3.1
8
Author URI: http://www.labnol.org/
9
*/
10
111
$videos = array();
112
113
foreach ($posts as $post) {
114
+ if (preg_match_all ("/youtube.com\/(v\/|watch\?v=|embed\/)([a-zA-Z0-9\-_]*)/", $post->post_content, $matches, PREG_SET_ORDER)) {
115
116
$excerpt = ($post->post_excerpt != "") ? $post->post_excerpt : $post->post_title ;
117
$permalink = get_permalink($post->id);