WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/05/2015 04:26:00 PM (6 years ago)
Author:
wonderboymusic
Message:

After [31620], when checking for HTTP URLs, make sure we are checking the shortcode body instead of an indexed attribute.

See #31139.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r31620 r31626  
    27122712    preg_match( '/' . get_shortcode_regex() . '/s', $shortcode, $matches );
    27132713    $atts = shortcode_parse_atts( $matches[3] );
    2714     if ( ! empty( $atts[5] ) ) {
    2715         $url = $atts[5];
     2714    if ( ! empty( $matches[5] ) ) {
     2715        $url = $matches[5];
    27162716    } elseif ( ! empty( $atts['src'] ) ) {
    27172717        $url = $atts['src'];
Note: See TracChangeset for help on using the changeset viewer.