Privacy: Mark Privacy Policy page as such in the Pages list table.

Props desrosj, subrataemfluence, ianbelanger, danieltj.
Merges [43495] to the 4.9 branch.
Fixes #44006.
Built from https://develop.svn.wordpress.org/branches/4.9@43496


git-svn-id: http://core.svn.wordpress.org/branches/4.9@43323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-07-17 16:47:26 +00:00
parent e8b54ed885
commit 9ebbcad7a0
2 changed files with 5 additions and 1 deletions

View File

@ -1775,6 +1775,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.
*

View File

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