WordPress.org

Make WordPress Core

Ticket #17492: patch.diff

File patch.diff, 448 bytes (added by wiltave, 4 years ago)
  • formatting.php

    old new  
    18561856 * @param string $text The excerpt. If set to empty an excerpt is generated. 
    18571857 * @return string The excerpt. 
    18581858 */ 
    1859 function wp_trim_excerpt($text) { 
     1859function wp_trim_excerpt($text = '') { 
    18601860        $raw_excerpt = $text; 
    18611861        if ( '' == $text ) { 
    18621862                $text = get_the_content('');