Use the edit_theme_options capability. fixes #13290.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2010-05-12 19:19:57 +00:00
parent e65ae591a0
commit 7389ea41ea
9 changed files with 50 additions and 32 deletions

View File

@@ -2974,7 +2974,7 @@ function wp_maybe_load_widgets() {
*/
function wp_widgets_add_menu() {
global $submenu;
$submenu['themes.php'][7] = array( __( 'Widgets' ), 'switch_themes', 'widgets.php' );
$submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' );
ksort( $submenu['themes.php'], SORT_NUMERIC );
}