Changeset 19006
- Timestamp:
- 10/19/2011 04:32:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r18984 r19006 573 573 return; 574 574 575 /* take the subs one level up 575 576 $wp_admin_bar->add_menu( array( 576 577 'id' => 'appearance', … … 579 580 'parent' => 'site-name', 580 581 ) ); 582 */ 581 583 582 584 if ( ! current_user_can( 'edit_theme_options' ) ) … … 584 586 585 587 if ( current_user_can( 'switch_themes' ) ) 586 $wp_admin_bar->add_menu( array( 'parent' => ' appearance', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) );588 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) ); 587 589 588 590 if ( current_theme_supports( 'widgets' ) ) 589 $wp_admin_bar->add_menu( array( 'parent' => ' appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) );591 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) ); 590 592 591 593 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 592 $wp_admin_bar->add_menu( array( 'parent' => ' appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) );594 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) ); 593 595 594 596 if ( current_theme_supports( 'custom-background' ) ) 595 $wp_admin_bar->add_menu( array( 'parent' => ' appearance', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) );597 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) ); 596 598 597 599 if ( current_theme_supports( 'custom-header' ) ) 598 $wp_admin_bar->add_menu( array( 'parent' => ' appearance', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) );600 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) ); 599 601 } 600 602
Note: See TracChangeset
for help on using the changeset viewer.