Version Description
- Bug: Fixed issue with 3 hyphens in a video ID being converted to —
Download this release
Release Info
Developer | codedart |
Plugin | YouTube Embed |
Version | 4.3.4 |
Comparing to | |
See all releases |
Code changes from version 4.3.3 to 4.3.4
- includes/shared-functions.php +7 -4
- readme.txt +8 -2
- youtube-embed.php +3 -3
includes/shared-functions.php
CHANGED
@@ -22,7 +22,10 @@ function ye_extract_id( $id ) {
|
|
22 |
|
23 |
// Convert and trim video ID characters
|
24 |
|
25 |
-
$
|
|
|
|
|
|
|
26 |
|
27 |
// Check if it's the full URL, as found in address bar
|
28 |
|
@@ -224,7 +227,7 @@ function ye_get_shortcode() {
|
|
224 |
function ye_set_shortcode() {
|
225 |
|
226 |
$shortcode = get_option( 'youtube_embed_shortcode' );
|
227 |
-
|
228 |
// If an array, transform to new format
|
229 |
|
230 |
if ( is_array( $shortcode ) ) {
|
@@ -338,7 +341,7 @@ function ye_get_profile( $profile ) {
|
|
338 |
} else {
|
339 |
$options[ 'default' ] = false;
|
340 |
}
|
341 |
-
|
342 |
// Remove added slashes from template XHTML
|
343 |
|
344 |
if ( isset( $options[ 'template' ] ) ) { $options[ 'template' ] = stripslashes( $options[ 'template' ] ); }
|
@@ -562,4 +565,4 @@ function ye_timer( $checkpoint, $name ) {
|
|
562 |
return microtime( true );
|
563 |
|
564 |
}
|
565 |
-
?>
|
22 |
|
23 |
// Convert and trim video ID characters
|
24 |
|
25 |
+
$replacement_from = array( '–', '—', '×' );
|
26 |
+
$replacement_to = array( '--', '---', 'x' );
|
27 |
+
|
28 |
+
$id = trim( strip_tags( str_replace( $replacement_from, $replacement_to, $id ) ) );
|
29 |
|
30 |
// Check if it's the full URL, as found in address bar
|
31 |
|
227 |
function ye_set_shortcode() {
|
228 |
|
229 |
$shortcode = get_option( 'youtube_embed_shortcode' );
|
230 |
+
|
231 |
// If an array, transform to new format
|
232 |
|
233 |
if ( is_array( $shortcode ) ) {
|
341 |
} else {
|
342 |
$options[ 'default' ] = false;
|
343 |
}
|
344 |
+
|
345 |
// Remove added slashes from template XHTML
|
346 |
|
347 |
if ( isset( $options[ 'template' ] ) ) { $options[ 'template' ] = stripslashes( $options[ 'template' ] ); }
|
565 |
return microtime( true );
|
566 |
|
567 |
}
|
568 |
+
?>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: codedart
|
|
3 |
Tags: download, embed, embedding, iframe, media, play, playlist, responsive, seo, video, widget, youtube
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 4.4.2
|
6 |
-
Stable tag: 4.3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -328,6 +328,9 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
|
|
328 |
|
329 |
== Changelog ==
|
330 |
|
|
|
|
|
|
|
331 |
= 4.3.3 =
|
332 |
* Maintenance: One of the URLs in the README is being reported as being infected by malware. I have therefore removed this URL but have changed the release number, although no code has changed, to force the new version to download to existing users
|
333 |
|
@@ -715,6 +718,9 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
|
|
715 |
|
716 |
== Upgrade Notice ==
|
717 |
|
|
|
|
|
|
|
718 |
= 4.3.3 =
|
719 |
* Update to remove a malware-reported URL from the README
|
720 |
|
@@ -869,4 +875,4 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
|
|
869 |
* Update to get the test video on the options screen working again!
|
870 |
|
871 |
= 1.0 =
|
872 |
-
* Initial release
|
3 |
Tags: download, embed, embedding, iframe, media, play, playlist, responsive, seo, video, widget, youtube
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 4.4.2
|
6 |
+
Stable tag: 4.3.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
328 |
|
329 |
== Changelog ==
|
330 |
|
331 |
+
= 4.3.4 =
|
332 |
+
* Bug: Fixed issue with 3 hyphens in a video ID being converted to —
|
333 |
+
|
334 |
= 4.3.3 =
|
335 |
* Maintenance: One of the URLs in the README is being reported as being infected by malware. I have therefore removed this URL but have changed the release number, although no code has changed, to force the new version to download to existing users
|
336 |
|
718 |
|
719 |
== Upgrade Notice ==
|
720 |
|
721 |
+
= 4.3.4 =
|
722 |
+
* Update to fix bug in video IDs with multiple hyphens
|
723 |
+
|
724 |
= 4.3.3 =
|
725 |
* Update to remove a malware-reported URL from the README
|
726 |
|
875 |
* Update to get the test video on the options screen working again!
|
876 |
|
877 |
= 1.0 =
|
878 |
+
* Initial release
|
youtube-embed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: YouTube Embed
|
4 |
Plugin URI: https://wordpress.org/plugins/youtube-embed/
|
5 |
Description: Embed YouTube Videos in WordPress
|
6 |
-
Version: 4.3.
|
7 |
Author: Coded Art
|
8 |
Author URI: http://codedart.co
|
9 |
Text Domain: youtube-embed
|
@@ -19,7 +19,7 @@ Domain Path: /languages
|
|
19 |
* @since 2.0
|
20 |
*/
|
21 |
|
22 |
-
define( 'youtube_embed_version', '4.3.
|
23 |
|
24 |
$functions_dir = plugin_dir_path( __FILE__ ) . 'includes/';
|
25 |
|
@@ -44,4 +44,4 @@ if ( is_admin() && !( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
|
|
44 |
include_once( $functions_dir . 'shortcodes.php' ); // Shortcodes
|
45 |
|
46 |
}
|
47 |
-
?>
|
3 |
Plugin Name: YouTube Embed
|
4 |
Plugin URI: https://wordpress.org/plugins/youtube-embed/
|
5 |
Description: Embed YouTube Videos in WordPress
|
6 |
+
Version: 4.3.4
|
7 |
Author: Coded Art
|
8 |
Author URI: http://codedart.co
|
9 |
Text Domain: youtube-embed
|
19 |
* @since 2.0
|
20 |
*/
|
21 |
|
22 |
+
define( 'youtube_embed_version', '4.3.4' );
|
23 |
|
24 |
$functions_dir = plugin_dir_path( __FILE__ ) . 'includes/';
|
25 |
|
44 |
include_once( $functions_dir . 'shortcodes.php' ); // Shortcodes
|
45 |
|
46 |
}
|
47 |
+
?>
|