Changeset 28963 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 07/02/2014 10:52:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r28903 r28963 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.0 156 * 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 ); 148 163 } 149 164 } … … 538 553 $classes[] = 'single-' . sanitize_html_class($post->post_type, $post_id); 539 554 $classes[] = 'postid-' . $post_id; 555 $classes[] = 'single-status-' . sanitize_html_class( $post->post_status ); 540 556 541 557 // Post Format
Note: See TracChangeset
for help on using the changeset viewer.