Ticket #17492: 17492.patch
| File 17492.patch, 608 bytes (added by , 15 years ago) |
|---|
-
wp-includes/formatting.php
1835 1835 * 1836 1836 * @since 1.5.0 1837 1837 * 1838 * @param string $text The excerpt. If set to emptyan excerpt is generated.1838 * @param string $text Optional. The excerpt. If set to empty, an excerpt is generated. 1839 1839 * @return string The excerpt. 1840 1840 */ 1841 function wp_trim_excerpt($text ) {1841 function wp_trim_excerpt($text = '') { 1842 1842 $raw_excerpt = $text; 1843 1843 if ( '' == $text ) { 1844 1844 $text = get_the_content('');