Changeset 43286
- Timestamp:
- 05/15/2018 08:43:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r43155 r43286 122 122 } 123 123 } 124 125 /* 126 * Setting the privacy policy page requires `manage_privacy_options`, 127 * so deleting it should require that too. 128 */ 129 if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) { 130 $caps = array_merge( $caps, map_meta_cap( 'manage_privacy_options', $user_id ) ); 131 } 132 124 133 break; 125 134 // edit_post breaks down to edit_posts, edit_published_posts, or … … 184 193 } 185 194 } 195 196 /* 197 * Setting the privacy policy page requires `manage_privacy_options`, 198 * so editing it should require that too. 199 */ 200 if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) { 201 $caps = array_merge( $caps, map_meta_cap( 'manage_privacy_options', $user_id ) ); 202 } 203 186 204 break; 187 205 case 'read_post':
Note: See TracChangeset
for help on using the changeset viewer.