Check for switch_themes, not edit_themes. Props Denis de Bernardy. fixes #4292

git-svn-id: http://svn.automattic.com/wordpress/trunk@5492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-19 04:38:51 +00:00
parent a45c3a3f23
commit 4a83568904

View File

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