File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ function _add_themes_utility_last() {
270270 $ submenu ['options-general.php ' ][25 ] = array ( __ ( 'Discussion ' ), 'manage_options ' , 'options-discussion.php ' );
271271 $ submenu ['options-general.php ' ][30 ] = array ( __ ( 'Media ' ), 'manage_options ' , 'options-media.php ' );
272272 $ 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 ' );
274274
275275$ _wp_last_utility_menu = 80 ; // The index of the last top-level menu in the utility menu group
276276
Original file line number Diff line number Diff line change 99/** WordPress Administration Bootstrap */
1010require_once ( dirname ( __FILE__ ) . '/admin.php ' );
1111
12- if ( ! current_user_can ( 'manage_privacy_policy ' ) ) {
12+ if ( ! current_user_can ( 'manage_privacy_options ' ) ) {
1313 wp_die ( __ ( 'Sorry, you are not allowed to manage privacy on this site. ' ) );
1414}
1515
200200 <form method="post" action="">
201201 <input type="hidden" name="action" value="create-privacy-page" />
202202 <span>
203- <?php _e ( 'Or create a new page: ' ); ?>
203+ <?php _e ( 'Or create a new page: ' ); ?>
204204 </span>
205205 <?php
206206 wp_nonce_field ( 'create-privacy-page ' );
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ function map_meta_cap( $cap, $user_id ) {
557557 break ;
558558 case 'export_others_personal_data ' :
559559 case 'erase_others_personal_data ' :
560- case 'manage_privacy_policy ' :
560+ case 'manage_privacy_options ' :
561561 $ caps [] = is_multisite () ? 'manage_network ' : 'manage_options ' ;
562562 break ;
563563 default :
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ final private function _getSingleSiteMetaCaps() {
239239 'upgrade_php ' => array ( 'administrator ' ),
240240 'export_others_personal_data ' => array ( 'administrator ' ),
241241 'erase_others_personal_data ' => array ( 'administrator ' ),
242- 'manage_privacy_policy ' => array ( 'administrator ' ),
242+ 'manage_privacy_options ' => array ( 'administrator ' ),
243243
244244 'edit_categories ' => array ( 'administrator ' , 'editor ' ),
245245 'delete_categories ' => array ( 'administrator ' , 'editor ' ),
@@ -274,7 +274,7 @@ final private function _getMultiSiteMetaCaps() {
274274 'upgrade_php ' => array (),
275275 'export_others_personal_data ' => array ( '' ),
276276 'erase_others_personal_data ' => array ( '' ),
277- 'manage_privacy_policy ' => array (),
277+ 'manage_privacy_options ' => array (),
278278
279279 'customize ' => array ( 'administrator ' ),
280280 'delete_site ' => array ( 'administrator ' ),
You can’t perform that action at this time.
0 commit comments