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