Ticket #7449: post-template.patch

File post-template.patch, 1.0 KB (added by msi08, 4 years ago)
  • ./trunk/wordpress/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 = '', $stripteaser = 0, $more_file = '') { 
     78        if ( strlen( $more_link_text ) === 0 ) { 
     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 = '', $stripteaser = 0, $more_file = '') { 
    8689        global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow; 
    8790 
     91        if ( strlen( $more_link_text ) === 0 ) { 
     92                $more_link_text = __('(more...)'); 
     93        } 
     94 
    8895        $output = ''; 
    8996 
    9097        if ( !empty($post->post_password) ) { // if there's a password