projects/plugins/jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php 1 location
|
@@ 68-79 (lines=12) @@
|
65 |
|
* @param array $menu Associative array of administration menu items. |
66 |
|
* @return array |
67 |
|
*/ |
68 |
|
public function set_browse_sites_link_class( array $menu ) { |
69 |
|
foreach ( $menu as $key => $menu_item ) { |
70 |
|
if ( 'site-switcher' !== $menu_item[3] ) { |
71 |
|
continue; |
72 |
|
} |
73 |
|
|
74 |
|
$menu[ $key ][4] = add_cssclass( 'site-switcher', $menu_item[4] ); |
75 |
|
break; |
76 |
|
} |
77 |
|
|
78 |
|
return $menu; |
79 |
|
} |
80 |
|
|
81 |
|
/** |
82 |
|
* 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
|
@@ 78-89 (lines=12) @@
|
75 |
|
* @param array $menu Associative array of administration menu items. |
76 |
|
* @return array |
77 |
|
*/ |
78 |
|
public function set_browse_sites_link_class( array $menu ) { |
79 |
|
foreach ( $menu as $key => $menu_item ) { |
80 |
|
if ( 'site-switcher' !== $menu_item[3] ) { |
81 |
|
continue; |
82 |
|
} |
83 |
|
|
84 |
|
$menu[ $key ][4] = add_cssclass( 'site-switcher', $menu_item[4] ); |
85 |
|
break; |
86 |
|
} |
87 |
|
|
88 |
|
return $menu; |
89 |
|
} |
90 |
|
|
91 |
|
/** |
92 |
|
* Adds a link to the menu to create a new site. |