Changeset 57600
- Timestamp:
- 02/12/2024 08:51:45 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/admin-bar.php
r57188 r57600 939 939 * 940 940 * @since 3.1.0 941 * @since 6.5.0 Added a New Site link for network installations. 941 942 * 942 943 * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. … … 1006 1007 'title' => $title, 1007 1008 'href' => admin_url( $link ), 1009 ) 1010 ); 1011 } 1012 1013 if ( is_multisite() && current_user_can( 'create_sites' ) ) { 1014 $wp_admin_bar->add_node( 1015 array( 1016 'parent' => 'new-content', 1017 'id' => 'add-new-site', 1018 'title' => _x( 'Site', 'add new from admin bar' ), 1019 'href' => network_admin_url( 'site-new.php' ), 1008 1020 ) 1009 1021 );
Note: See TracChangeset
for help on using the changeset viewer.