WordPress.org

Make WordPress Core

Changeset 10981


Ignore:
Timestamp:
04/17/09 06:59:33 (6 years ago)
Author:
ryan
Message:

Add wp_trim_excerpt filter. Props coffee2code. fixes #9558

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r10977 r10981  
    16281628 */ 
    16291629function wp_trim_excerpt($text) { 
     1630    $raw_excerpt = $text; 
    16301631    if ( '' == $text ) { 
    16311632        $text = get_the_content(''); 
     
    16441645        } 
    16451646    } 
    1646     return $text; 
     1647    return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); 
    16471648} 
    16481649 
Note: See TracChangeset for help on using the changeset viewer.