Changeset 28833 for trunk/src/wp-admin/options.php
- Timestamp:
- 06/25/2014 09:47:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r28530 r28833 27 27 $capability = 'manage_options'; 28 28 29 if ( empty($option_page) ) // This is for back compat and will eventually be removed. 29 // This is for back compat and will eventually be removed. 30 if ( empty($option_page) ) { 30 31 $option_page = 'options'; 31 else 32 } else { 32 33 33 34 /** … … 42 43 */ 43 44 $capability = apply_filters( "option_page_capability_{$option_page}", $capability ); 45 } 44 46 45 47 if ( !current_user_can( $capability ) )
Note: See TracChangeset
for help on using the changeset viewer.