Use proper non-capturing regex syntax for YouTube in wp_video_shortcode()
.
Props Fab1en. See [27063]. Fixes #29119. git-svn-id: https://develop.svn.wordpress.org/trunk@29401 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4984b04b81
commit
68a82b0932
@ -1758,7 +1758,7 @@ function wp_video_shortcode( $attr, $content = '' ) {
|
||||
}
|
||||
}
|
||||
|
||||
$yt_pattern = '#^https?://(:?www\.)?(:?youtube\.com/watch|youtu\.be/)#';
|
||||
$yt_pattern = '#^https?://(?:www\.)?(?:youtube\.com/watch|youtu\.be/)#';
|
||||
|
||||
$primary = false;
|
||||
if ( ! empty( $atts['src'] ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user