Make WordPress Core

Ticket #25349: 25349.patch

File 25349.patch, 710 bytes (added by Frank Klein, 11 years ago)
  • src/wp-includes/formatting.php

     
    23692369 * @return string The excerpt.
    23702370 */
    23712371function wp_trim_excerpt($text = '') {
     2372        global $more;
     2373
    23722374        $raw_excerpt = $text;
    23732375        if ( '' == $text ) {
     2376                // Temporarily set $more to 0, to respect manual excerpts created using <!-- more -->.
     2377                $tmp_more = $more;
     2378                $more = 0;
     2379
    23742380                $text = get_the_content('');
    23752381
     2382                // Reset $more to its original value.
     2383                $more = $tmp_more;
     2384
    23762385                $text = strip_shortcodes( $text );
    23772386
    23782387                /** This filter is documented in wp-includes/post-template.php */