Ticket #23888: 23888.2.diff
File 23888.2.diff, 732 bytes (added by , 12 years ago) |
---|
-
wp-includes/media.php
2386 2386 2387 2387 $count = 1; 2388 2388 $matches = array(); 2389 $content = &$post->post_content;2389 $content = $post->post_content; 2390 2390 2391 2391 if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) { 2392 2392 foreach ( $matches as $shortcode ) { … … 2415 2415 return $post->format_content; 2416 2416 } 2417 2417 2418 $content = &$post->post_content;2418 $content = $post->post_content; 2419 2419 $htmls = get_content_images( $content, true, true, 1 ); 2420 2420 if ( ! empty( $htmls ) ) { 2421 2421 $html = reset( $htmls );