WordPress.org

Make WordPress Core

Changeset 11111


Ignore:
Timestamp:
04/28/09 17:36:10 (6 years ago)
Author:
ryan
Message:

protected_title_format and private_title_format. Props anderswc. fixes #8918

File:
1 edited

Legend:

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

    r11109 r11111  
    110110 
    111111    if ( !is_admin() ) { 
    112         if ( !empty($post->post_password) ) 
    113             $title = sprintf(__('Protected: %s'), $title); 
    114         else if ( isset($post->post_status) && 'private' == $post->post_status ) 
    115             $title = sprintf(__('Private: %s'), $title); 
     112        if ( !empty($post->post_password) ) { 
     113            $protected_title_format = apply_filters('protected_title_format', __('Protected: %s')); 
     114            $title = sprintf($protected_title_format, $title); 
     115        } else if ( isset($post->post_status) && 'private' == $post->post_status ) { 
     116            $private_title_format = apply_filters('private_title_format', __('Private: %s')); 
     117            $title = sprintf($private_title_format, $title); 
     118        } 
    116119    } 
    117120    return apply_filters( 'the_title', $title ); 
Note: See TracChangeset for help on using the changeset viewer.