Make WordPress Core

Changeset 29235


Ignore:
Timestamp:
07/19/2014 12:25:46 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Revert [28963].

see #28006.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r29112 r29235  
    146146            $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post );
    147147            $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 );
    163148        }
    164149    }
     
    558543            $classes[] = 'single-' . sanitize_html_class($post->post_type, $post_id);
    559544            $classes[] = 'postid-' . $post_id;
    560             $classes[] = 'single-status-' . sanitize_html_class( $post->post_status );
    561545
    562546            // Post Format
Note: See TracChangeset for help on using the changeset viewer.