mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Check for switch_themes, not edit_themes. Props Denis de Bernardy. fixes #4292
git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ac6890d106
commit
b6aed2a86d
@ -1507,7 +1507,7 @@ function wp_maybe_load_widgets() {
|
|||||||
|
|
||||||
function wp_widgets_add_menu() {
|
function wp_widgets_add_menu() {
|
||||||
global $submenu;
|
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);
|
ksort($submenu['themes.php'], SORT_NUMERIC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user