Changeset 43287
- Timestamp:
- 05/15/2018 08:58:05 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/capabilities.php
r43156 r43287 120 120 } 121 121 } 122 123 /* 124 * Setting the privacy policy page requires `manage_privacy_options`, 125 * so deleting it should require that too. 126 */ 127 if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) { 128 $caps = array_merge( $caps, map_meta_cap( 'manage_privacy_options', $user_id ) ); 129 } 130 122 131 break; 123 132 // edit_post breaks down to edit_posts, edit_published_posts, or … … 181 190 } 182 191 } 192 193 /* 194 * Setting the privacy policy page requires `manage_privacy_options`, 195 * so editing it should require that too. 196 */ 197 if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) { 198 $caps = array_merge( $caps, map_meta_cap( 'manage_privacy_options', $user_id ) ); 199 } 200 183 201 break; 184 202 case 'read_post':
Note: See TracChangeset
for help on using the changeset viewer.