diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index f15bfbdb74..dccc6ca43b 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -109,10 +109,13 @@ function get_the_title( $id = 0 ) { $title = $post->post_title; if ( !is_admin() ) { - if ( !empty($post->post_password) ) - $title = sprintf(__('Protected: %s'), $title); - else if ( isset($post->post_status) && 'private' == $post->post_status ) - $title = sprintf(__('Private: %s'), $title); + if ( !empty($post->post_password) ) { + $protected_title_format = apply_filters('protected_title_format', __('Protected: %s')); + $title = sprintf($protected_title_format, $title); + } else if ( isset($post->post_status) && 'private' == $post->post_status ) { + $private_title_format = apply_filters('private_title_format', __('Private: %s')); + $title = sprintf($private_title_format, $title); + } } return apply_filters( 'the_title', $title ); }