Make WordPress Core

Changeset 8547


Ignore:
Timestamp:
08/05/2008 06:40:44 AM (16 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r8012 r8547  
    7575}
    7676
    77 function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
     77function the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') {
    7878    $content = get_the_content($more_link_text, $stripteaser, $more_file);
    7979    $content = apply_filters('the_content', $content);
     
    8383
    8484
    85 function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
     85function get_the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') {
    8686    global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
     87
     88    if ( NULL == $more_link_text )
     89        $more_link_text = __( '(more...)' );
    8790
    8891    $output = '';
Note: See TracChangeset for help on using the changeset viewer.