Make WordPress Core

Ticket #16632: 16632.aug-8-2013.diff

File 16632.aug-8-2013.diff, 1.1 KB (added by yoavf, 11 years ago)

refreshed

  • src/wp-includes/general-template.php

     
    673673        if ( !isset($_post->post_title) )
    674674                return;
    675675
    676         $title = apply_filters('single_post_title', $_post->post_title, $_post);
     676        $title = $prefix . apply_filters('single_post_title', $_post->post_title, $_post);
     677
    677678        if ( $display )
    678                 echo $prefix . $title;
     679                echo $title;
    679680        else
    680681                return $title;
    681682}
     
    697698                return;
    698699
    699700        $post_type_obj = get_queried_object();
    700         $title = apply_filters('post_type_archive_title', $post_type_obj->labels->name );
     701        $title = $prefix . apply_filters('post_type_archive_title', $post_type_obj->labels->name );
    701702
    702703        if ( $display )
    703                 echo $prefix . $title;
     704                echo $title;
    704705        else
    705706                return $title;
    706707}
     
    782783        if ( empty( $term_name ) )
    783784                return;
    784785
     786        $term_name = $prefix . $term_name;
     787
    785788        if ( $display )
    786                 echo $prefix . $term_name;
     789                echo $term_name;
    787790        else
    788791                return $term_name;
    789792}