diff --git a/src/wp-admin/includes/template-functions.php b/src/wp-admin/includes/template-functions.php index 54d0a0a889..91a50fc5a7 100644 --- a/src/wp-admin/includes/template-functions.php +++ b/src/wp-admin/includes/template-functions.php @@ -1631,12 +1631,14 @@ function _post_states($post) { $post_states['scheduled'] = __( 'Scheduled' ); } - if ( get_option( 'page_on_front' ) == $post->ID ) { - $post_states['page_on_front'] = __( 'Front Page' ); - } + if ( 'page' === get_option( 'show_on_front' ) ) { + if ( intval( 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' ); + if ( intval( get_option( 'page_for_posts' ) ) === $post->ID ) { + $post_states['page_for_posts'] = __( 'Posts Page' ); + } } /**