Changes in trunk/wp-admin/options.php [17056:17986]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r17056 r17986 1 1 <?php 2 2 /** 3 * Options Management Administration Panel.3 * Options Management Administration Screen. 4 4 * 5 5 * If accessed directly in a browser this page shows a list of all saved options … … 25 25 wp_reset_vars(array('action', 'option_page')); 26 26 27 $capability = 'manage_options'; 28 27 29 if ( empty($option_page) ) // This is for back compat and will eventually be removed. 28 30 $option_page = 'options'; 29 30 if ( !current_user_can('manage_options') ) 31 else 32 $capability = apply_filters( "option_page_capability_{$option_page}", $capability ); 33 34 if ( !current_user_can( $capability ) ) 31 35 wp_die(__('Cheatin’ uh?')); 32 36
Note: See TracChangeset
for help on using the changeset viewer.