projects/plugins/jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php 1 location
|
@@ 82-93 (lines=12) @@
|
79 |
|
* @param array $menu Associative array of administration menu items. |
80 |
|
* @return array |
81 |
|
*/ |
82 |
|
public function set_browse_sites_link_class( array $menu ) { |
83 |
|
foreach ( $menu as $key => $menu_item ) { |
84 |
|
if ( 'site-switcher' !== $menu_item[3] ) { |
85 |
|
continue; |
86 |
|
} |
87 |
|
|
88 |
|
$menu[ $key ][4] = add_cssclass( 'site-switcher', $menu_item[4] ); |
89 |
|
break; |
90 |
|
} |
91 |
|
|
92 |
|
return $menu; |
93 |
|
} |
94 |
|
|
95 |
|
/** |
96 |
|
* Adds a link to the menu to create a new site. |
projects/plugins/jetpack/modules/masterbar/admin-menu/class-wpcom-admin-menu.php 1 location
|
@@ 82-93 (lines=12) @@
|
79 |
|
* @param array $menu Associative array of administration menu items. |
80 |
|
* @return array |
81 |
|
*/ |
82 |
|
public function set_browse_sites_link_class( array $menu ) { |
83 |
|
foreach ( $menu as $key => $menu_item ) { |
84 |
|
if ( 'site-switcher' !== $menu_item[3] ) { |
85 |
|
continue; |
86 |
|
} |
87 |
|
|
88 |
|
$menu[ $key ][4] = add_cssclass( 'site-switcher', $menu_item[4] ); |
89 |
|
break; |
90 |
|
} |
91 |
|
|
92 |
|
return $menu; |
93 |
|
} |
94 |
|
|
95 |
|
/** |
96 |
|
* Adds a link to the menu to create a new site. |