~robotparade/wordpress/stable

« back to all changes in this revision

Viewing changes to wp-admin/menu.php

  • Committer: Jeff Waugh
  • Date: 2010-06-11 21:00:40 UTC
  • Revision ID: jdub@bethesignal.org-20100611210040-9narx3kdlayc8x39
WordPress 3.0 RC3

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
if ( current_user_can( 'switch_themes') ) {
158
158
        $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div' );
159
159
                $submenu['themes.php'][5]  = array(__('Themes'), 'switch_themes', 'themes.php');
160
 
                if ( current_theme_supports( 'nav-menus' ) || current_theme_supports( 'widgets' ) )
 
160
                if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) )
161
161
                        $submenu['themes.php'][10] = array(__('Menus'), 'edit_theme_options', 'nav-menus.php');
162
162
} else {
163
163
        $menu[60] = array( __('Appearance'), 'edit_theme_options', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div' );
164
164
                $submenu['themes.php'][5]  = array(__('Themes'), 'edit_theme_options', 'themes.php');
165
 
                if ( current_theme_supports( 'nav-menus' ) || current_theme_supports( 'widgets' ) )
 
165
                if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) )
166
166
                        $submenu['themes.php'][10] = array(__('Menus'), 'edit_theme_options', 'nav-menus.php' );
167
167
}
168
168