List tables: Display front and posts page indicators.

fixes #30190.

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


git-svn-id: http://core.svn.wordpress.org/trunk@31591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-03-04 19:45:25 +00:00
parent f53199487d
commit df08581656
2 changed files with 11 additions and 4 deletions

View File

@ -1677,13 +1677,20 @@ function _post_states($post) {
if ( is_sticky($post->ID) )
$post_states['sticky'] = __('Sticky');
if ( get_option( 'page_on_front' ) == $post->ID ) {
$post_states['page_on_front'] = __( 'Front Page' );
}
if ( get_option( 'page_for_posts' ) == $post->ID ) {
$post_states['page_for_posts'] = __( 'Posts Page' );
}
/**
* Filter the default post display states used in the Posts list table.
* Filter the default post display states used in the posts list table.
*
* @since 2.8.0
*
* @param array $post_states An array of post display states. Values include 'Password protected',
* 'Private', 'Draft', 'Pending', and 'Sticky'.
* @param array $post_states An array of post display states.
* @param int $post The post ID.
*/
$post_states = apply_filters( 'display_post_states', $post_states, $post );

View File

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