Changeset 43155
- Timestamp:
- 05/03/2018 07:30:49 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r43147 r43155 271 271 $submenu['options-general.php'][30] = array( __( 'Media' ), 'manage_options', 'options-media.php' ); 272 272 $submenu['options-general.php'][40] = array( __( 'Permalinks' ), 'manage_options', 'options-permalink.php' ); 273 $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_ policy', 'privacy.php' );273 $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'privacy.php' ); 274 274 275 275 $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group -
trunk/src/wp-admin/privacy.php
r43147 r43155 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 -
trunk/src/wp-includes/capabilities.php
r43147 r43155 558 558 case 'export_others_personal_data': 559 559 case 'erase_others_personal_data': 560 case 'manage_privacy_ policy':560 case 'manage_privacy_options': 561 561 $caps[] = is_multisite() ? 'manage_network' : 'manage_options'; 562 562 break; -
trunk/tests/phpunit/tests/user/capabilities.php
r43147 r43155 240 240 'export_others_personal_data' => array( 'administrator' ), 241 241 'erase_others_personal_data' => array( 'administrator' ), 242 'manage_privacy_ policy'=> array( 'administrator' ),242 'manage_privacy_options' => array( 'administrator' ), 243 243 244 244 'edit_categories' => array( 'administrator', 'editor' ), … … 275 275 'export_others_personal_data' => array( '' ), 276 276 'erase_others_personal_data' => array( '' ), 277 'manage_privacy_ policy' => array(),277 'manage_privacy_options' => array(), 278 278 279 279 'customize' => array( 'administrator' ),
Note: See TracChangeset
for help on using the changeset viewer.