Make WordPress Core

Ticket #23888: 23888.2.diff

File 23888.2.diff, 732 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/media.php

     
    23862386
    23872387                $count = 1;
    23882388                $matches = array();
    2389                 $content =& $post->post_content;
     2389                $content = $post->post_content;
    23902390
    23912391                if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) {
    23922392                        foreach ( $matches as $shortcode ) {
     
    24152415                return $post->format_content;
    24162416        }
    24172417
    2418         $content =& $post->post_content;
     2418        $content = $post->post_content;
    24192419        $htmls = get_content_images( $content, true, true, 1 );
    24202420        if ( ! empty( $htmls ) ) {
    24212421                $html = reset( $htmls );