Make WordPress Core


Ignore:
Timestamp:
05/13/2018 11:03:57 AM (6 years ago)
Author:
azaozz
Message:

Privacy: require manage_privacy_options capability for showing WP_Privacy_Policy_Content::notice().

Props ocean90.
Fixes #44055.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r43242 r43248  
    15661566        }
    15671567
     1568        if ( ! current_user_can( 'manage_privacy_options' ) ) {
     1569            return;
     1570        }
     1571
    15681572        $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );
    15691573
Note: See TracChangeset for help on using the changeset viewer.