Ticket #23724: 23724.patch
File 23724.patch, 909 bytes (added by , 12 years ago) |
---|
-
wp-includes/post-template.php
107 107 108 108 if ( ! is_admin() ) { 109 109 if ( ! empty( $post->post_password ) ) { 110 $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ) );110 $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ), $post ); 111 111 $title = sprintf( $protected_title_format, $title ); 112 112 } else if ( isset( $post->post_status ) && 'private' == $post->post_status ) { 113 $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ) );113 $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post ); 114 114 $title = sprintf( $private_title_format, $title ); 115 115 } 116 116 } 117 117 118 return apply_filters( 'the_title', $title, $id );118 return apply_filters( 'the_title', $title, $id, $post ); 119 119 } 120 120 121 121 /**