Ticket #9558: bug9558-make-wp_trim_excerpt-filterable.diff
| File bug9558-make-wp_trim_excerpt-filterable.diff, 526 bytes (added by coffee2code, 3 years ago) |
|---|
-
wp-includes/formatting.php
1627 1627 * @return string The excerpt. 1628 1628 */ 1629 1629 function wp_trim_excerpt($text) { 1630 $raw_excerpt = $text; 1630 1631 if ( '' == $text ) { 1631 1632 $text = get_the_content(''); 1632 1633 … … 1643 1644 $text = implode(' ', $words); 1644 1645 } 1645 1646 } 1646 return $text;1647 return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); 1647 1648 } 1648 1649 1649 1650 /**
