WordPress.org

Make WordPress Core

Ticket #17492: 17492.patch

File 17492.patch, 608 bytes (added by SergeyBiryukov, 4 years ago)
  • wp-includes/formatting.php

     
    18351835 * 
    18361836 * @since 1.5.0 
    18371837 * 
    1838  * @param string $text The excerpt. If set to empty an excerpt is generated. 
     1838 * @param string $text Optional. The excerpt. If set to empty, an excerpt is generated. 
    18391839 * @return string The excerpt. 
    18401840 */ 
    1841 function wp_trim_excerpt($text) { 
     1841function wp_trim_excerpt($text = '') { 
    18421842        $raw_excerpt = $text; 
    18431843        if ( '' == $text ) { 
    18441844                $text = get_the_content('');