From 90d63591c6fec792589048bbe2862d5bbacf9cde Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 17 Jul 2018 16:46:25 +0000 Subject: [PATCH] Privacy: Mark Privacy Policy page as such in the Pages list table. Props desrosj, subrataemfluence, ianbelanger, danieltj. Fixes #44006. Built from https://develop.svn.wordpress.org/trunk@43495 git-svn-id: http://core.svn.wordpress.org/trunk@43322 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 7507950245..180b0ad632 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1898,6 +1898,10 @@ function _post_states( $post ) { } } + if ( intval( get_option( 'wp_page_for_privacy_policy' ) ) === $post->ID ) { + $post_states['page_for_privacy_policy'] = __( 'Privacy Policy Page' ); + } + /** * Filters the default post display states used in the posts list table. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 24b7125a7e..f361d73af3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43493'; +$wp_version = '5.0-alpha-43495'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.