Changeset 43156
- Timestamp:
- 05/03/2018 07:34:21 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/menu.php
r43153 r43156 257 257 $submenu['options-general.php'][30] = array(__('Media'), 'manage_options', 'options-media.php'); 258 258 $submenu['options-general.php'][40] = array(__('Permalinks'), 'manage_options', 'options-permalink.php'); 259 $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_ policy', 'privacy.php' );259 $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'privacy.php' ); 260 260 261 261 $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group -
branches/4.9/src/wp-admin/privacy.php
r43153 r43156 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 if ( ! current_user_can( 'manage_privacy_ policy' ) ) {12 if ( ! current_user_can( 'manage_privacy_options' ) ) { 13 13 wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) ); 14 14 } … … 201 201 <input type="hidden" name="action" value="create-privacy-page" /> 202 202 <span> 203 <?php _e( 'Or create a new page:' ); ?> 203 <?php _e( 'Or create a new page:' ); ?> 204 204 </span> 205 205 <?php -
branches/4.9/src/wp-includes/capabilities.php
r43153 r43156 542 542 case 'export_others_personal_data': 543 543 case 'erase_others_personal_data': 544 case 'manage_privacy_ policy':544 case 'manage_privacy_options': 545 545 $caps[] = is_multisite() ? 'manage_network' : 'manage_options'; 546 546 break; -
branches/4.9/tests/phpunit/tests/user/capabilities.php
r43153 r43156 239 239 'export_others_personal_data' => array( 'administrator' ), 240 240 'erase_others_personal_data' => array( 'administrator' ), 241 'manage_privacy_ policy'=> array( 'administrator' ),241 'manage_privacy_options' => array( 'administrator' ), 242 242 243 243 'edit_categories' => array( 'administrator', 'editor' ), … … 273 273 'export_others_personal_data' => array( '' ), 274 274 'erase_others_personal_data' => array( '' ), 275 'manage_privacy_ policy' => array(),275 'manage_privacy_options' => array(), 276 276 277 277 'customize' => array( 'administrator' ),
Note: See TracChangeset
for help on using the changeset viewer.