Ticket #7449: 7449.viper.patch

File 7449.viper.patch, 1.1 KB (added by Viper007Bond, 4 years ago)

Better patch IMO

  • wp-includes/post-template.php

     
    7474        return apply_filters('get_the_guid', $post->guid); 
    7575} 
    7676 
    77 function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { 
     77function the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') { 
     78        if ( NULL == $more_link_text ) 
     79                $more_link_text = __( '(more...)' );  
     80 
    7881        $content = get_the_content($more_link_text, $stripteaser, $more_file); 
    7982        $content = apply_filters('the_content', $content); 
    8083        $content = str_replace(']]>', ']]>', $content); 
     
    8285} 
    8386 
    8487 
    85 function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { 
     88function get_the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') { 
    8689        global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow; 
    8790 
     91        if ( NULL == $more_link_text ) 
     92                $more_link_text = __( '(more...)' );  
     93 
    8894        $output = ''; 
    8995 
    9096        if ( !empty($post->post_password) ) { // if there's a password