Ticket #23724: 23724.3.patch
File 23724.3.patch, 1.5 KB (added by , 10 years ago) |
---|
-
src/wp-includes/post-template.php
123 123 * 124 124 * @since 2.8.0 125 125 * 126 * @param string $prepend Text displayed before the post title. 127 * Default 'Protected: %s'. 126 * @param string $prepend Text displayed before the post title. 127 * Default 'Protected: %s'. 128 * @param WP_Post $post Current post object. 128 129 */ 129 $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ) );130 $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ), $post ); 130 131 $title = sprintf( $protected_title_format, $title ); 131 132 } else if ( isset( $post->post_status ) && 'private' == $post->post_status ) { 132 133 … … 137 138 * 138 139 * @since 2.8.0 139 140 * 140 * @param string $prepend Text displayed before the post title. 141 * Default 'Private: %s'. 141 * @param string $prepend Text displayed before the post title. 142 * Default 'Private: %s'. 143 * @param WP_Post $post Current post object. 142 144 */ 143 $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ) );145 $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post ); 144 146 $title = sprintf( $private_title_format, $title ); 145 147 } 146 148 }