Privacy: require manage_privacy_options capability for showing WP_Privacy_Policy_Content::notice().
Props ocean90. Fixes #44055. Built from https://develop.svn.wordpress.org/trunk@43248 git-svn-id: http://core.svn.wordpress.org/trunk@43077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1565,6 +1565,10 @@ final class WP_Privacy_Policy_Content {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! current_user_can( 'manage_privacy_options' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );
|
||||
|
||||
if ( ! $policy_page_id || $policy_page_id != $post->ID ) {
|
||||
|
||||
Reference in New Issue
Block a user