WordPress.org

Make WordPress Core

Changeset 25120


Ignore:
Timestamp:
08/26/2013 03:21:42 PM (7 years ago)
Author:
nacin
Message:

Network Admin toolbar menu: Add Plugins and Themes, remove Visit Network.

props Ipstenu, SergeyBiryukov.
fixes #21674.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r24999 r25120  
    335335        $wp_admin_bar->add_menu( array(
    336336            'parent' => 'network-admin',
    337             'id'     => 'network-admin-v',
    338             'title'  => __( 'Visit Network' ),
    339             'href'   => network_home_url(),
     337            'id'     => 'network-admin-t',
     338            'title'  => __( 'Themes' ),
     339            'href'   => network_admin_url( 'themes.php' ),
     340        ) );
     341        $wp_admin_bar->add_menu( array(
     342            'parent' => 'network-admin',
     343            'id'     => 'network-admin-p',
     344            'title'  => __( 'Plugins' ),
     345            'href'   => network_admin_url( 'plugins.php' ),
    340346        ) );
    341347    }
Note: See TracChangeset for help on using the changeset viewer.