Version Description
- Bug fix: Corrected settings URL in plugin meta.
- Bug fix: If plugin has never run before, ensure a default options array is generated.
- Maintenance: Removed donation options and updated branding.
Download this release
Release Info
Developer | dartiss |
Plugin | YouTube Embed |
Version | 4.1.1 |
Comparing to | |
See all releases |
Code changes from version 4.1 to 4.1.1
- includes/admin-config.php +1 -2
- includes/shared-functions.php +5 -1
- languages/youtube-embed.mo +0 -0
- languages/youtube-embed.po +27 -31
- readme.txt +8 -4
- youtube-embed.php +4 -4
includes/admin-config.php
CHANGED
@@ -26,7 +26,7 @@ function vye_add_settings_link( $links, $file ) {
|
|
26 |
if ( !$this_plugin ) { $this_plugin = plugin_basename( __FILE__ ); }
|
27 |
|
28 |
if ( strpos( $file, 'youtube-embed.php' ) !== false ) {
|
29 |
-
$settings_link = '<a href="
|
30 |
array_unshift( $links, $settings_link );
|
31 |
}
|
32 |
|
@@ -52,7 +52,6 @@ function vye_set_plugin_meta( $links, $file ) {
|
|
52 |
if ( strpos( $file, 'youtube-embed.php' ) !== false ) {
|
53 |
|
54 |
$links = array_merge( $links, array( '<a href="https://wordpress.org/support/plugin/youtube-embed">' . __( 'Support', 'youtube-embed' ) . '</a>' ) );
|
55 |
-
$links = array_merge( $links, array( '<a href="http://www.artiss.co.uk/donate">' . __( 'Donate', 'youtube-embed' ) . '</a>' ) );
|
56 |
|
57 |
}
|
58 |
|
26 |
if ( !$this_plugin ) { $this_plugin = plugin_basename( __FILE__ ); }
|
27 |
|
28 |
if ( strpos( $file, 'youtube-embed.php' ) !== false ) {
|
29 |
+
$settings_link = '<a href="options-general.php?page=ye-general-options">' . __( 'Settings', 'youtube-embed' ) . '</a>';
|
30 |
array_unshift( $links, $settings_link );
|
31 |
}
|
32 |
|
52 |
if ( strpos( $file, 'youtube-embed.php' ) !== false ) {
|
53 |
|
54 |
$links = array_merge( $links, array( '<a href="https://wordpress.org/support/plugin/youtube-embed">' . __( 'Support', 'youtube-embed' ) . '</a>' ) );
|
|
|
55 |
|
56 |
}
|
57 |
|
includes/shared-functions.php
CHANGED
@@ -203,7 +203,7 @@ function vye_validate_id( $id ) {
|
|
203 |
|
204 |
function vye_error( $errorin ) {
|
205 |
|
206 |
-
return '<p style="color: #f00; font-weight: bold;">
|
207 |
|
208 |
}
|
209 |
|
@@ -476,6 +476,10 @@ function vye_set_general_defaults() {
|
|
476 |
|
477 |
$options = get_option( 'youtube_embed_general' );
|
478 |
|
|
|
|
|
|
|
|
|
479 |
// Because of upgrading, check each option - if not set, apply default
|
480 |
|
481 |
$default_array = array(
|
203 |
|
204 |
function vye_error( $errorin ) {
|
205 |
|
206 |
+
return '<p style="color: #f00; font-weight: bold;">YouTube Embed: ' . $errorin . "</p>\n";
|
207 |
|
208 |
}
|
209 |
|
476 |
|
477 |
$options = get_option( 'youtube_embed_general' );
|
478 |
|
479 |
+
// If options don't exist, create an empty array
|
480 |
+
|
481 |
+
if ( !is_array( $options ) ) { $options = array(); }
|
482 |
+
|
483 |
// Because of upgrading, check each option - if not set, apply default
|
484 |
|
485 |
$default_array = array(
|
languages/youtube-embed.mo
CHANGED
Binary file
|
languages/youtube-embed.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Vixy YouTube Embed\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2015-12-
|
6 |
-
"PO-Revision-Date: 2015-12-
|
7 |
"Last-Translator: David Artiss <david.artiss@artiss.co.uk>\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: en_GB\n"
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
-
#: includes/add-scripts.php:94 includes/admin-config.php:
|
21 |
#: includes/generate-widgets.php:25
|
22 |
msgid "YouTube Embed"
|
23 |
msgstr ""
|
@@ -26,11 +26,11 @@ msgstr ""
|
|
26 |
msgid "Options"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: includes/add-scripts.php:106 includes/admin-config.php:
|
30 |
msgid "Profiles"
|
31 |
msgstr ""
|
32 |
|
33 |
-
#: includes/add-scripts.php:113 includes/admin-config.php:
|
34 |
msgid "Lists"
|
35 |
msgstr ""
|
36 |
|
@@ -42,48 +42,44 @@ msgstr ""
|
|
42 |
msgid "Support"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/admin-config.php:
|
46 |
-
msgid "Donate"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: includes/admin-config.php:86
|
50 |
msgid "About YouTube Embed"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: includes/admin-config.php:
|
54 |
msgid "YouTube"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: includes/admin-config.php:
|
58 |
msgid "YouTube Embed Profiles"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: includes/admin-config.php:
|
62 |
msgid "YouTube Embed Lists"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: includes/admin-config.php:
|
66 |
msgid "YouTube Embed Options"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: includes/admin-config.php:
|
70 |
-
#: includes/admin-config.php:
|
71 |
msgid "Help"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: includes/admin-config.php:
|
75 |
-
#: includes/admin-config.php:
|
76 |
msgid "Links"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/admin-config.php:
|
80 |
msgid ""
|
81 |
"This screen allows you to select non-specific options for the YouTube Embed "
|
82 |
"plugin. For the default embedding settings, please select the <a href="
|
83 |
"\"admin.php?page=ye-profile-options\">Profiles</a> administration option."
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: includes/admin-config.php:
|
87 |
msgid ""
|
88 |
"This screen allows you to set the options for the default and additional "
|
89 |
"profiles. If you don't specify a specific parameter when displaying your "
|
@@ -92,56 +88,56 @@ msgid ""
|
|
92 |
"required."
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: includes/admin-config.php:
|
96 |
msgid ""
|
97 |
"All settings will work whether the Flash or HTML5 player is used, unless one "
|
98 |
"of the following icons is shown, indicating which format the option works "
|
99 |
"with..."
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: includes/admin-config.php:
|
103 |
msgid "Flash player"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: includes/admin-config.php:
|
107 |
msgid "HTML5 player"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: includes/admin-config.php:
|
111 |
msgid ""
|
112 |
"This screen allows you to create lists of YouTube videos, which may be "
|
113 |
"named. These lists can then be used in preference to a single video ID."
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: includes/admin-config.php:
|
117 |
msgid ""
|
118 |
"Remember to click the Save Changes button at the bottom of the screen for "
|
119 |
"any changes to take effect."
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: includes/admin-config.php:
|
123 |
msgid "For more information:"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: includes/admin-config.php:
|
127 |
msgid "YouTube Embed Plugin Documentation"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: includes/admin-config.php:
|
131 |
msgid "YouTube Player Documentation"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: includes/admin-config.php:
|
135 |
msgid ""
|
136 |
"For some reason the shortcode <strong>[youtube]</strong> is not working on "
|
137 |
"the main site"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: includes/admin-config.php:
|
141 |
msgid "An alternative plugin is using the <strong>[youtube]</strong> shortcode"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: includes/admin-config.php:
|
145 |
msgid ""
|
146 |
", possibly the <a href=\"admin.php?page=jetpack_modules&activated=true"
|
147 |
"\">Shortcode Embeds module</a> in Jetpack"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Vixy YouTube Embed\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2015-12-08 13:47-0000\n"
|
6 |
+
"PO-Revision-Date: 2015-12-08 13:47-0000\n"
|
7 |
"Last-Translator: David Artiss <david.artiss@artiss.co.uk>\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: en_GB\n"
|
17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
+
#: includes/add-scripts.php:94 includes/admin-config.php:107
|
21 |
#: includes/generate-widgets.php:25
|
22 |
msgid "YouTube Embed"
|
23 |
msgstr ""
|
26 |
msgid "Options"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: includes/add-scripts.php:106 includes/admin-config.php:91
|
30 |
msgid "Profiles"
|
31 |
msgstr ""
|
32 |
|
33 |
+
#: includes/add-scripts.php:113 includes/admin-config.php:99
|
34 |
msgid "Lists"
|
35 |
msgstr ""
|
36 |
|
42 |
msgid "Support"
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: includes/admin-config.php:85
|
|
|
|
|
|
|
|
|
46 |
msgid "About YouTube Embed"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: includes/admin-config.php:85
|
50 |
msgid "YouTube"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: includes/admin-config.php:91 includes/options-profiles.php:117
|
54 |
msgid "YouTube Embed Profiles"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: includes/admin-config.php:99 includes/options-lists.php:103
|
58 |
msgid "YouTube Embed Lists"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: includes/admin-config.php:107 includes/options-general.php:16
|
62 |
msgid "YouTube Embed Options"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: includes/admin-config.php:174 includes/admin-config.php:196
|
66 |
+
#: includes/admin-config.php:218
|
67 |
msgid "Help"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: includes/admin-config.php:176 includes/admin-config.php:198
|
71 |
+
#: includes/admin-config.php:220
|
72 |
msgid "Links"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: includes/admin-config.php:241
|
76 |
msgid ""
|
77 |
"This screen allows you to select non-specific options for the YouTube Embed "
|
78 |
"plugin. For the default embedding settings, please select the <a href="
|
79 |
"\"admin.php?page=ye-profile-options\">Profiles</a> administration option."
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: includes/admin-config.php:246
|
83 |
msgid ""
|
84 |
"This screen allows you to set the options for the default and additional "
|
85 |
"profiles. If you don't specify a specific parameter when displaying your "
|
88 |
"required."
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: includes/admin-config.php:247
|
92 |
msgid ""
|
93 |
"All settings will work whether the Flash or HTML5 player is used, unless one "
|
94 |
"of the following icons is shown, indicating which format the option works "
|
95 |
"with..."
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: includes/admin-config.php:248
|
99 |
msgid "Flash player"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: includes/admin-config.php:249
|
103 |
msgid "HTML5 player"
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: includes/admin-config.php:254
|
107 |
msgid ""
|
108 |
"This screen allows you to create lists of YouTube videos, which may be "
|
109 |
"named. These lists can then be used in preference to a single video ID."
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: includes/admin-config.php:258
|
113 |
msgid ""
|
114 |
"Remember to click the Save Changes button at the bottom of the screen for "
|
115 |
"any changes to take effect."
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: includes/admin-config.php:263
|
119 |
msgid "For more information:"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: includes/admin-config.php:264
|
123 |
msgid "YouTube Embed Plugin Documentation"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: includes/admin-config.php:267
|
127 |
msgid "YouTube Player Documentation"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: includes/admin-config.php:366
|
131 |
msgid ""
|
132 |
"For some reason the shortcode <strong>[youtube]</strong> is not working on "
|
133 |
"the main site"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: includes/admin-config.php:369
|
137 |
msgid "An alternative plugin is using the <strong>[youtube]</strong> shortcode"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: includes/admin-config.php:376
|
141 |
msgid ""
|
142 |
", possibly the <a href=\"admin.php?page=jetpack_modules&activated=true"
|
143 |
"\">Shortcode Embeds module</a> in Jetpack"
|
readme.txt
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
=== YouTube Embed ===
|
2 |
-
Contributors:
|
3 |
-
|
4 |
-
Tags: annotations, artiss, chromecast, comments, download, embed, embedding, embedplus, flash, flv, hd, iframe, media, play, playlist, profile, responsive, seo, url, video, widget, youtube, youtuber
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -320,6 +319,11 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
|
|
320 |
|
321 |
== Changelog ==
|
322 |
|
|
|
|
|
|
|
|
|
|
|
323 |
= 4.1 =
|
324 |
* Enhancement: Added 'Plays inline' option for iOS devices.
|
325 |
* Enhancement: Added extra Closed Caption option to better reflect how YouTube works - either on, off, or user default.
|
1 |
=== YouTube Embed ===
|
2 |
+
Contributors: codedart
|
3 |
+
Tags: annotations, artiss, chromecast, codedart, comments, download, embed, embedding, embedplus, flash, flv, hd, iframe, media, play, playlist, profile, responsive, seo, url, video, widget, youtube, youtuber
|
|
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 4.3.1
|
6 |
+
Stable tag: 4.1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
319 |
|
320 |
== Changelog ==
|
321 |
|
322 |
+
= 4.1.1 =
|
323 |
+
* Bug fix: Corrected settings URL in plugin meta.
|
324 |
+
* Bug fix: If plugin has never run before, ensure a default options array is generated.
|
325 |
+
* Maintenance: Removed donation options and updated branding.
|
326 |
+
|
327 |
= 4.1 =
|
328 |
* Enhancement: Added 'Plays inline' option for iOS devices.
|
329 |
* Enhancement: Added extra Closed Caption option to better reflect how YouTube works - either on, off, or user default.
|
youtube-embed.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
Plugin Name: YouTube Embed
|
4 |
Plugin URI: https://wordpress.org/plugins/youtube-embed/
|
5 |
Description: Embed YouTube Videos in WordPress
|
6 |
-
Version: 4.1
|
7 |
-
Author:
|
8 |
-
Author URI: http://
|
9 |
Text Domain: youtube-embed
|
10 |
Domain Path: /languages
|
11 |
*/
|
@@ -19,7 +19,7 @@ Domain Path: /languages
|
|
19 |
* @since 2.0
|
20 |
*/
|
21 |
|
22 |
-
define( 'youtube_embed_version', '4.1' );
|
23 |
|
24 |
$functions_dir = WP_PLUGIN_DIR . '/youtube-embed/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.1.1
|
7 |
+
Author: Coded Art
|
8 |
+
Author URI: http://codedart.co
|
9 |
Text Domain: youtube-embed
|
10 |
Domain Path: /languages
|
11 |
*/
|
19 |
* @since 2.0
|
20 |
*/
|
21 |
|
22 |
+
define( 'youtube_embed_version', '4.1.1' );
|
23 |
|
24 |
$functions_dir = WP_PLUGIN_DIR . '/youtube-embed/includes/';
|
25 |
|