From c4673e8c7906be9494aa7f379f96b322ba108b3b Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Wed, 4 Mar 2015 19:44:22 +0000 Subject: [PATCH] List tables: Display front and posts page indicators. fixes #30190. git-svn-id: https://develop.svn.wordpress.org/trunk@31610 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 3e38e38333..4539f33202 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -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 );