mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user