projects/plugins/jetpack/modules/masterbar/admin-menu/class-wpcom-admin-menu.php 1 location
|
@@ 70-81 (lines=12) @@
|
67 |
|
* @param array $menu Associative array of administration menu items. |
68 |
|
* @return array |
69 |
|
*/ |
70 |
|
public function set_browse_sites_link_class( array $menu ) { |
71 |
|
foreach ( $menu as $key => $menu_item ) { |
72 |
|
if ( 'site-switcher' !== $menu_item[3] ) { |
73 |
|
continue; |
74 |
|
} |
75 |
|
|
76 |
|
$menu[ $key ][4] = add_cssclass( 'site-switcher', $menu_item[4] ); |
77 |
|
break; |
78 |
|
} |
79 |
|
|
80 |
|
return $menu; |
81 |
|
} |
82 |
|
|
83 |
|
/** |
84 |
|
* Adds a link to the menu to create a new site. |
projects/plugins/jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php 1 location
|
@@ 121-132 (lines=12) @@
|
118 |
|
* |
119 |
|
* @return array |
120 |
|
*/ |
121 |
|
public function set_browse_sites_link_class( array $menu ) { |
122 |
|
foreach ( $menu as $key => $menu_item ) { |
123 |
|
if ( 'site-switcher' !== $menu_item[3] ) { |
124 |
|
continue; |
125 |
|
} |
126 |
|
|
127 |
|
$menu[ $key ][4] = add_cssclass( 'site-switcher', $menu_item[4] ); |
128 |
|
break; |
129 |
|
} |
130 |
|
|
131 |
|
return $menu; |
132 |
|
} |
133 |
|
|
134 |
|
/** |
135 |
|
* Adds a link to the menu to create a new site. |