Make WordPress Core


Ignore:
Timestamp:
05/12/2010 07:19:57 PM (14 years ago)
Author:
nacin
Message:

Use the edit_theme_options capability. fixes #13290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r14578 r14581  
    5353     */
    5454    function init() {
    55         if ( ! current_user_can('switch_themes') )
     55        if ( ! current_user_can('edit_theme_options') )
    5656            return;
    5757
    58         $page = add_theme_page(__('Background'), __('Background'), 'switch_themes', 'custom-background', array(&$this, 'admin_page'));
     58        $page = add_theme_page(__('Background'), __('Background'), 'edit_theme_options', 'custom-background', array(&$this, 'admin_page'));
    5959
    6060        add_action("load-$page", array(&$this, 'admin_load'));
Note: See TracChangeset for help on using the changeset viewer.