Ticket #17492: patch.diff

File patch.diff, 448 bytes (added by wiltave, 2 years ago)
Line 
1--- /tmp/formatting.php 2011-05-29 13:04:22.936076904 -0300
2+++ /var/www/wordpress-freelancer/wp-includes/formatting.php    2011-05-29 13:04:30.959976031 -0300
3@@ -1856,7 +1856,7 @@
4  * @param string $text The excerpt. If set to empty an excerpt is generated.
5  * @return string The excerpt.
6  */
7-function wp_trim_excerpt($text) {
8+function wp_trim_excerpt($text = '') {
9        $raw_excerpt = $text;
10        if ( '' == $text ) {
11                $text = get_the_content('');