mirror of
git://develop.git.wordpress.org/
synced 2025-04-21 20:51:55 +02:00
Privacy: rename manage_privacy_policy
to manage_privacy_options
.
Props desrosj. Merges [43155] to the 4.9 branch. Fixes #43935. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43156 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
64279d7f38
commit
bb3e7f4779
@ -256,7 +256,7 @@ $menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '',
|
||||
$submenu['options-general.php'][25] = array(__('Discussion'), 'manage_options', 'options-discussion.php');
|
||||
$submenu['options-general.php'][30] = array(__('Media'), 'manage_options', 'options-media.php');
|
||||
$submenu['options-general.php'][40] = array(__('Permalinks'), 'manage_options', 'options-permalink.php');
|
||||
$submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_policy', 'privacy.php' );
|
||||
$submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'privacy.php' );
|
||||
|
||||
$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! current_user_can( 'manage_privacy_policy' ) ) {
|
||||
if ( ! current_user_can( 'manage_privacy_options' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) );
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
<form method="post" action="">
|
||||
<input type="hidden" name="action" value="create-privacy-page" />
|
||||
<span>
|
||||
<?php _e( 'Or create a new page:' ); ?>
|
||||
<?php _e( 'Or create a new page:' ); ?>
|
||||
</span>
|
||||
<?php
|
||||
wp_nonce_field( 'create-privacy-page' );
|
||||
|
@ -541,7 +541,7 @@ function map_meta_cap( $cap, $user_id ) {
|
||||
break;
|
||||
case 'export_others_personal_data':
|
||||
case 'erase_others_personal_data':
|
||||
case 'manage_privacy_policy':
|
||||
case 'manage_privacy_options':
|
||||
$caps[] = is_multisite() ? 'manage_network' : 'manage_options';
|
||||
break;
|
||||
default:
|
||||
|
@ -238,7 +238,7 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
|
||||
'deactivate_plugins' => array( 'administrator' ),
|
||||
'export_others_personal_data' => array( 'administrator' ),
|
||||
'erase_others_personal_data' => array( 'administrator' ),
|
||||
'manage_privacy_policy' => array( 'administrator' ),
|
||||
'manage_privacy_options' => array( 'administrator' ),
|
||||
|
||||
'edit_categories' => array( 'administrator', 'editor' ),
|
||||
'delete_categories' => array( 'administrator', 'editor' ),
|
||||
@ -272,7 +272,7 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
|
||||
'deactivate_plugins' => array(),
|
||||
'export_others_personal_data' => array( '' ),
|
||||
'erase_others_personal_data' => array( '' ),
|
||||
'manage_privacy_policy' => array(),
|
||||
'manage_privacy_options' => array(),
|
||||
|
||||
'customize' => array( 'administrator' ),
|
||||
'delete_site' => array( 'administrator' ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user