Changeset 14581 for trunk/wp-admin/custom-header.php
- Timestamp:
- 05/12/2010 07:19:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r14443 r14581 62 62 */ 63 63 function init() { 64 if ( ! current_user_can(' switch_themes') )64 if ( ! current_user_can('edit_theme_options') ) 65 65 return; 66 66 67 $page = add_theme_page(__('Header'), __('Header'), ' switch_themes', 'custom-header', array(&$this, 'admin_page'));67 $page = add_theme_page(__('Header'), __('Header'), 'edit_theme_options', 'custom-header', array(&$this, 'admin_page')); 68 68 69 69 add_action("admin_print_scripts-$page", array(&$this, 'js_includes')); … … 126 126 */ 127 127 function take_action() { 128 if ( ! current_user_can(' switch_themes') )128 if ( ! current_user_can('edit_theme_options') ) 129 129 return; 130 130 … … 598 598 */ 599 599 function admin_page() { 600 if ( ! current_user_can(' switch_themes') )600 if ( ! current_user_can('edit_theme_options') ) 601 601 wp_die(__('You do not have permission to customize headers.')); 602 602 $step = $this->step();
Note: See TracChangeset
for help on using the changeset viewer.