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-includes/functions.php

    r14539 r14581  
    29752975function wp_widgets_add_menu() {
    29762976    global $submenu;
    2977     $submenu['themes.php'][7] = array( __( 'Widgets' ), 'switch_themes', 'widgets.php' );
     2977    $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' );
    29782978    ksort( $submenu['themes.php'], SORT_NUMERIC );
    29792979}
Note: See TracChangeset for help on using the changeset viewer.