Hide YouTube Related Videos - Version 1.4.1

Version Description

(Sep 28, 2015) = * Ease matching restrictions to allow more querystring elements to be passed through on original ur

Download this release

Release Info

Developer sparkweb
Plugin Icon 128x128 Hide YouTube Related Videos
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4 to 1.4.1

Files changed (2) hide show
  1. hide-youtube-related-videos.php +5 -5
  2. readme.txt +9 -6
hide-youtube-related-videos.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Hide YouTube Related Videos
4
  Plugin URI: http://wordpress.org/extend/plugins/hide-youtube-related-videos/
5
  Description: This is a simple plugin to keep the YouTube oEmbed from showing related videos.
6
  Author: SparkWeb Interactive, Inc.
7
- Version: 1.4
8
  Author URI: http://www.soapboxdave.com/
9
 
10
  **************************************************************************
@@ -35,12 +35,12 @@ function hide_youtube_related_videos($data, $url, $args = array()) {
35
  $str_to_add = apply_filters("hyrv_extra_querystring_parameters", "wmode=transparent&") . 'rel=0';
36
 
37
  //Regular oembed
38
- if (strpos($data, "?feature=oembed") !== false) {
39
- $data = str_replace('?feature=oembed', '?' . $str_to_add . '&feature=oembed', $data);
40
 
41
  //Playlist
42
- } elseif (strpos($data, "videoseries?list=") !== false) {
43
- $data = str_replace('videoseries?list=', 'videoseries?' . $str_to_add . '&list=', $data);
44
  }
45
 
46
  //All Set
4
  Plugin URI: http://wordpress.org/extend/plugins/hide-youtube-related-videos/
5
  Description: This is a simple plugin to keep the YouTube oEmbed from showing related videos.
6
  Author: SparkWeb Interactive, Inc.
7
+ Version: 1.4.1
8
  Author URI: http://www.soapboxdave.com/
9
 
10
  **************************************************************************
35
  $str_to_add = apply_filters("hyrv_extra_querystring_parameters", "wmode=transparent&") . 'rel=0';
36
 
37
  //Regular oembed
38
+ if (strpos($data, "feature=oembed") !== false) {
39
+ $data = str_replace('feature=oembed', $str_to_add . '&feature=oembed', $data);
40
 
41
  //Playlist
42
+ } elseif (strpos($data, "list=") !== false) {
43
+ $data = str_replace('list=', $str_to_add . '&list=', $data);
44
  }
45
 
46
  //All Set
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sparkweb
3
  Tags: youtube, video, oembed, related
4
  Requires at least: 2.9
5
  Tested up to: 4.3.1
6
- Stable tag: 1.4
7
  This is a simple plugin to keep the YouTube oEmbed from showing related videos.
8
 
9
  == Description ==
@@ -43,15 +43,18 @@ Be sure to leave an & at the end of your string. After installing your filte
43
 
44
 
45
  == Changelog ==
 
 
 
46
 
47
  = 1.4 (Sep 24, 2015) =
48
- Added support for playlists, added clear cache button to plugin page
49
 
50
  = 1.3 (Feb 10, 2014) =
51
- Disabled Jetpack YouTube shortcode embed as it kills this feature
52
 
53
  = 1.2 (Feb 21, 2013) =
54
- Added wmode=transparent to the url structure
55
 
56
  = 1.1 (Feb 11, 2013) =
57
  * Updated to match YouTube's new URL structure
@@ -62,5 +65,5 @@ Added wmode=transparent to the url structure
62
 
63
  == Upgrade Notice ==
64
 
65
- = 1.4 =
66
- Added support for playlists, added clear cache button to plugin page
3
  Tags: youtube, video, oembed, related
4
  Requires at least: 2.9
5
  Tested up to: 4.3.1
6
+ Stable tag: 1.4.1
7
  This is a simple plugin to keep the YouTube oEmbed from showing related videos.
8
 
9
  == Description ==
43
 
44
 
45
  == Changelog ==
46
+
47
+ = 1.4.1 (Sep 28, 2015) =
48
+ * Ease matching restrictions to allow more querystring elements to be passed through on original ur
49
 
50
  = 1.4 (Sep 24, 2015) =
51
+ * Added support for playlists, added clear cache button to plugin page
52
 
53
  = 1.3 (Feb 10, 2014) =
54
+ * Disabled Jetpack YouTube shortcode embed as it kills this feature
55
 
56
  = 1.2 (Feb 21, 2013) =
57
+ * Added wmode=transparent to the url structure
58
 
59
  = 1.1 (Feb 11, 2013) =
60
  * Updated to match YouTube's new URL structure
65
 
66
  == Upgrade Notice ==
67
 
68
+ = 1.4.1 =
69
+ Added support for playlists, added clear cache button to plugin page, ease matching restrictions