Changeset 19434 for trunk/wp-includes/admin-bar.php
- Timestamp:
- 11/23/2011 11:01:20 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/admin-bar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r19429 r19434 539 539 */ 540 540 function wp_admin_bar_appearance_menu( $wp_admin_bar ) { 541 $wp_admin_bar->add_group( array( 'parent' => 'site-name', 'id' => 'appearance' ) ); 542 541 543 if ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) ) 542 $wp_admin_bar->add_menu( array( 'parent' => ' site-name', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) );544 $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) ); 543 545 544 546 if ( ! current_user_can( 'edit_theme_options' ) ) … … 546 548 547 549 if ( current_theme_supports( 'widgets' ) ) 548 $wp_admin_bar->add_menu( array( 'parent' => ' site-name', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) );550 $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) ); 549 551 550 552 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 551 $wp_admin_bar->add_menu( array( 'parent' => ' site-name', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) );553 $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) ); 552 554 553 555 if ( current_theme_supports( 'custom-background' ) ) 554 $wp_admin_bar->add_menu( array( 'parent' => ' site-name', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) );556 $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) ); 555 557 556 558 if ( current_theme_supports( 'custom-header' ) ) 557 $wp_admin_bar->add_menu( array( 'parent' => ' site-name', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) );559 $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) ); 558 560 } 559 561
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)