Allow the default more string to be translated. Fixes #7449 props Viper007Bond.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7564143444
commit
bf16f5dd53
|
@ -74,7 +74,7 @@ function get_the_guid( $id = 0 ) {
|
||||||
return apply_filters('get_the_guid', $post->guid);
|
return apply_filters('get_the_guid', $post->guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
|
function the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') {
|
||||||
$content = get_the_content($more_link_text, $stripteaser, $more_file);
|
$content = get_the_content($more_link_text, $stripteaser, $more_file);
|
||||||
$content = apply_filters('the_content', $content);
|
$content = apply_filters('the_content', $content);
|
||||||
$content = str_replace(']]>', ']]>', $content);
|
$content = str_replace(']]>', ']]>', $content);
|
||||||
|
@ -82,9 +82,12 @@ function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
|
function get_the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') {
|
||||||
global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
|
global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
|
||||||
|
|
||||||
|
if ( NULL == $more_link_text )
|
||||||
|
$more_link_text = __( '(more...)' );
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
if ( !empty($post->post_password) ) { // if there's a password
|
if ( !empty($post->post_password) ) { // if there's a password
|
||||||
|
|
Loading…
Reference in New Issue