diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2017-06-15 08:53:57 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-06-15 08:53:57 -0400 |
commit | 48822ba710570832bbc0ffb9b6c3470e25e7bf29 (patch) | |
tree | 70e349b7e03191c456033287e53593056249c962 /plugins/jetpack/modules/videopress/shortcode.php | |
parent | Update twentyfourteen 2.0 (diff) | |
download | blogs-gentoo-48822ba710570832bbc0ffb9b6c3470e25e7bf29.tar.gz blogs-gentoo-48822ba710570832bbc0ffb9b6c3470e25e7bf29.tar.bz2 blogs-gentoo-48822ba710570832bbc0ffb9b6c3470e25e7bf29.zip |
Update jetpack 5.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/videopress/shortcode.php')
-rw-r--r-- | plugins/jetpack/modules/videopress/shortcode.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/videopress/shortcode.php b/plugins/jetpack/modules/videopress/shortcode.php index dd041dbb..3e185bbb 100644 --- a/plugins/jetpack/modules/videopress/shortcode.php +++ b/plugins/jetpack/modules/videopress/shortcode.php @@ -184,6 +184,11 @@ class VideoPress_Shortcode { $videopress_guid = $matches[2]; } + // Also test for videopress oembed url, which is used by the Video Media Widget. + if ( ! $videopress_guid && preg_match( '@https://videopress.com/v/([a-z0-9]{8})@i', $url, $matches ) ) { + $videopress_guid = $matches[1]; + } + break; } } |