Changeset 45926 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r45900 r45926 123 123 if ( ! is_admin() ) { 124 124 if ( ! empty( $post->post_password ) ) { 125 126 /* translators: %s: protected post title */ 127 $prepend = __( 'Protected: %s' ); 125 128 126 129 /** … … 135 138 * @param WP_Post $post Current post object. 136 139 */ 137 $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ), $post );140 $protected_title_format = apply_filters( 'protected_title_format', $prepend, $post ); 138 141 $title = sprintf( $protected_title_format, $title ); 139 142 } elseif ( isset( $post->post_status ) && 'private' == $post->post_status ) { 143 144 /* translators: %s: private post title */ 145 $prepend = __( 'Private: %s' ); 140 146 141 147 /** … … 150 156 * @param WP_Post $post Current post object. 151 157 */ 152 $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post );158 $private_title_format = apply_filters( 'private_title_format', $prepend, $post ); 153 159 $title = sprintf( $private_title_format, $title ); 154 160 }
Note: See TracChangeset
for help on using the changeset viewer.