Allow the default more string to be translated. Fixes #7449 props Viper007Bond.

git-svn-id: https://develop.svn.wordpress.org/trunk@8547 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-08-05 06:40:44 +00:00
parent 742aa7d933
commit 5260a37685
1 changed files with 5 additions and 2 deletions

View File

@ -74,7 +74,7 @@ function get_the_guid( $id = 0 ) {
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 = apply_filters('the_content', $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;
if ( NULL == $more_link_text )
$more_link_text = __( '(more...)' );
$output = '';
if ( !empty($post->post_password) ) { // if there's a password