Changeset 29235
- Timestamp:
- 07/19/2014 12:25:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r29112 r29235 146 146 $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post ); 147 147 $title = sprintf( $private_title_format, $title ); 148 } else if ( isset( $post->post_status ) && 'draft' == $post->post_status ) {149 150 /**151 * Filter the text prepended to the post title of draft posts.152 *153 * The filter is only applied on the front end.154 *155 * @since 4.0.0156 *157 * @param string $prepend Text displayed before the post title.158 * Default 'Draft: %s'.159 * @param WP_Post $post Current post object.160 */161 $draft_title_format = apply_filters( 'draft_title_format', __( 'Draft: %s' ), $post );162 $title = sprintf( $draft_title_format, $title );163 148 } 164 149 } … … 558 543 $classes[] = 'single-' . sanitize_html_class($post->post_type, $post_id); 559 544 $classes[] = 'postid-' . $post_id; 560 $classes[] = 'single-status-' . sanitize_html_class( $post->post_status );561 545 562 546 // Post Format
Note: See TracChangeset
for help on using the changeset viewer.