WordPress.org

Make WordPress Core

Ticket #24456: 24456.2.diff

File 24456.2.diff, 398 bytes (added by aaroncampbell, 5 years ago)
  • wp-includes/class-wp-embed.php

     
    137137        function shortcode( $attr, $url = '' ) {
    138138                $post = get_post();
    139139
     140                if ( ! empty( $attr['src'] ) )
     141                        $url = $attr['src'];
     142
    140143                if ( empty( $url ) )
    141144                        return '';
    142145