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
74 74 return apply_filters('get_the_guid', $post->guid); 75 75 } 76 76 77 function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { 77 function the_content($more_link_text = '', $stripteaser = 0, $more_file = '') { 78 if ( strlen( $more_link_text ) === 0 ) { 79 $more_link_text = __('(more...)'); 80 } 78 81 $content = get_the_content($more_link_text, $stripteaser, $more_file); 79 82 $content = apply_filters('the_content', $content); 80 83 $content = str_replace(']]>', ']]>', $content); … … 82 85 } 83 86 84 87 85 function get_the_content($more_link_text = ' (more...)', $stripteaser = 0, $more_file = '') {88 function get_the_content($more_link_text = '', $stripteaser = 0, $more_file = '') { 86 89 global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow; 87 90 91 if ( strlen( $more_link_text ) === 0 ) { 92 $more_link_text = __('(more...)'); 93 } 94 88 95 $output = ''; 89 96 90 97 if ( !empty($post->post_password) ) { // if there's a password
