After [31620], when checking for HTTP URLs, make sure we are checking the shortcode body instead of an indexed attribute.
See #31139. git-svn-id: https://develop.svn.wordpress.org/trunk@31626 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef10d719eb
commit
214836a843
|
@ -2711,8 +2711,8 @@ function wp_ajax_parse_embed() {
|
|||
|
||||
preg_match( '/' . get_shortcode_regex() . '/s', $shortcode, $matches );
|
||||
$atts = shortcode_parse_atts( $matches[3] );
|
||||
if ( ! empty( $atts[5] ) ) {
|
||||
$url = $atts[5];
|
||||
if ( ! empty( $matches[5] ) ) {
|
||||
$url = $matches[5];
|
||||
} elseif ( ! empty( $atts['src'] ) ) {
|
||||
$url = $atts['src'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue