summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2016-02-12 22:22:00 -0500
committerYury German <blueknight@gentoo.org>2016-02-12 22:22:00 -0500
commit657cafe0e955cf88033597f131aa50835140c617 (patch)
treecf21a30d319cb2a238a6cfb8b4eb3b20b1b5dcff /plugins/jetpack/functions.compat.php
parentAdding New Mantra version 2.4.1.1 - Bug 574468 (diff)
downloadblogs-gentoo-657cafe0e955cf88033597f131aa50835140c617.tar.gz
blogs-gentoo-657cafe0e955cf88033597f131aa50835140c617.tar.bz2
blogs-gentoo-657cafe0e955cf88033597f131aa50835140c617.zip
Updating plugins easy-table, jetpack, openid, public-post preview, talbe-of-contents-plus, wordress-mobile-pack - Bug 574468
Diffstat (limited to 'plugins/jetpack/functions.compat.php')
-rw-r--r--plugins/jetpack/functions.compat.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/jetpack/functions.compat.php b/plugins/jetpack/functions.compat.php
index e3ee26e5..8f6f4a13 100644
--- a/plugins/jetpack/functions.compat.php
+++ b/plugins/jetpack/functions.compat.php
@@ -17,8 +17,9 @@ function jetpack_shortcode_get_youtube_id( $url ) {
*/
function jetpack_get_youtube_id( $url ) {
// Do we have an $atts array? Get first att
- if ( is_array( $url ) )
- $url = $url[0];
+ if ( is_array( $url ) ) {
+ $url = reset( $url );
+ }
$url = youtube_sanitize_url( $url );
$url = parse_url( $url );