Make WordPress Core

Changeset 43277 for branches/4.9


Ignore:
Timestamp:
05/15/2018 06:03:21 PM (8 years ago)
Author:
iandunn
Message:

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

Props ocean90.
Merges [43248] to the 4.9 branch.
Fixes #44055.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/misc.php

    r43273 r43277  
    15181518                }
    15191519
     1520                if ( ! current_user_can( 'manage_privacy_options' ) ) {
     1521                        return;
     1522                }
     1523
    15201524                $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );
    15211525
Note: See TracChangeset for help on using the changeset viewer.