WordPress.org

Make WordPress Core

Ticket #14673: 14673_admin_options_panel.diff

File 14673_admin_options_panel.diff, 521 bytes (added by davecpage, 4 years ago)

Have been using this code for a short while and haven't found any negative aspects.

  • wp-admin/options.php

     
    2727if ( empty($option_page) ) // This is for back compat and will eventually be removed. 
    2828        $option_page = 'options'; 
    2929 
    30 if ( !current_user_can('manage_options') ) 
     30if ( !current_user_can('manage_options') && !current_user_can('edit_theme_options') ) 
    3131        wp_die(__('Cheatin’ uh?')); 
    3232 
    3333// Handle admin email change requests