diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 98d258bc0..7cf43970e 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1627,6 +1627,7 @@ function human_time_diff( $from, $to = '' ) { * @return string The excerpt. */ function wp_trim_excerpt($text) { + $raw_excerpt = $text; if ( '' == $text ) { $text = get_the_content(''); @@ -1643,7 +1644,7 @@ function wp_trim_excerpt($text) { $text = implode(' ', $words); } } - return $text; + return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); } /**