Ticket #25349: 25349.patch
File 25349.patch, 710 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/formatting.php
2369 2369 * @return string The excerpt. 2370 2370 */ 2371 2371 function wp_trim_excerpt($text = '') { 2372 global $more; 2373 2372 2374 $raw_excerpt = $text; 2373 2375 if ( '' == $text ) { 2376 // Temporarily set $more to 0, to respect manual excerpts created using <!-- more -->. 2377 $tmp_more = $more; 2378 $more = 0; 2379 2374 2380 $text = get_the_content(''); 2375 2381 2382 // Reset $more to its original value. 2383 $more = $tmp_more; 2384 2376 2385 $text = strip_shortcodes( $text ); 2377 2386 2378 2387 /** This filter is documented in wp-includes/post-template.php */