Add "Scheduled" to post states.

props rclations.
fixes #32131.

Built from https://develop.svn.wordpress.org/trunk@32902


git-svn-id: http://core.svn.wordpress.org/trunk@32873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-06-22 16:07:26 +00:00
parent 4332d8dfc0
commit 5a07e4bba4
2 changed files with 5 additions and 1 deletions

View File

@ -1723,6 +1723,10 @@ function _post_states($post) {
if ( is_sticky($post->ID) ) if ( is_sticky($post->ID) )
$post_states['sticky'] = __('Sticky'); $post_states['sticky'] = __('Sticky');
if ( 'future' === $post->post_status ) {
$post_states['scheduled'] = __( 'Scheduled' );
}
if ( get_option( 'page_on_front' ) == $post->ID ) { if ( get_option( 'page_on_front' ) == $post->ID ) {
$post_states['page_on_front'] = __( 'Front Page' ); $post_states['page_on_front'] = __( 'Front Page' );
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-alpha-32901'; $wp_version = '4.3-alpha-32902';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.