From 5260a376850a36c275727753b6f00e3d93d9b0b2 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Tue, 5 Aug 2008 06:40:44 +0000 Subject: [PATCH] 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 --- wp-includes/post-template.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 40a56d99eb..7b56ab03be 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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