YouTube Embed - Version 4.3.1

Version Description

  • Bug: Had removed a function (by accident, you understand) that converted the old alternative shortcode settings to a new format. The result is that the conversion didn't take place and an array was passed as a shortcode name to WordPress Core, generating an error. The function has been added back in.
Download this release

Release Info

Developer codedart
Plugin Icon 128x128 YouTube Embed
Version 4.3.1
Comparing to
See all releases

Code changes from version 4.3 to 4.3.1

includes/shared-functions.php CHANGED
@@ -224,6 +224,13 @@ function ye_get_shortcode() {
224
  function ye_set_shortcode() {
225
 
226
  $shortcode = get_option( 'youtube_embed_shortcode' );
 
 
 
 
 
 
 
227
 
228
  // If setting doesn't exist, set defaults
229
 
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 ) ) {
231
+ $shortcode = $shortcode[ 1 ];
232
+ update_option( 'youtube_embed_shortcode', $shortcode );
233
+ }
234
 
235
  // If setting doesn't exist, set defaults
236
 
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
 
@@ -330,6 +330,9 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
330
 
331
  == Changelog ==
332
 
 
 
 
333
  = 4.3 =
334
  * Enhancement: Added new "Third Party Plugins" screen, which lists third party plugins that work alongside YouTube Embed, adding extra functionality. You can view, install and see the status of these plugins from this screen
335
  * Maintenance: Moved the settings back to the YouTube Embed menu
@@ -708,6 +711,9 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
708
 
709
  == Upgrade Notice ==
710
 
 
 
 
711
  = 4.3 =
712
  * Upgrade to add a new third party plugin screen
713
 
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.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
330
 
331
  == Changelog ==
332
 
333
+ = 4.3.1 =
334
+ * Bug: Had removed a function (by accident, you understand) that converted the old alternative shortcode settings to a new format. The result is that the conversion didn't take place and an array was passed as a shortcode name to WordPress Core, generating an error. The function has been added back in.
335
+
336
  = 4.3 =
337
  * Enhancement: Added new "Third Party Plugins" screen, which lists third party plugins that work alongside YouTube Embed, adding extra functionality. You can view, install and see the status of these plugins from this screen
338
  * Maintenance: Moved the settings back to the YouTube Embed menu
711
 
712
  == Upgrade Notice ==
713
 
714
+ = 4.3.1 =
715
+ * Upgrade to fix an urgent issue that can generate WordPress errors
716
+
717
  = 4.3 =
718
  * Upgrade to add a new third party plugin screen
719
 
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
 
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.1
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.1' );
23
 
24
  $functions_dir = plugin_dir_path( __FILE__ ) . 'includes/';
25