| @@ 60-73 (lines=14) @@ | ||
| 57 | /** |
|
| 58 | * Create the desired menu output. |
|
| 59 | */ |
|
| 60 | public function reregister_menu_items() { |
|
| 61 | parent::reregister_menu_items(); |
|
| 62 | ||
| 63 | $this->add_my_home_menu(); |
|
| 64 | ||
| 65 | // Not needed outside of wp-admin. |
|
| 66 | if ( ! $this->is_api_request ) { |
|
| 67 | $this->add_browse_sites_link(); |
|
| 68 | $this->add_site_card_menu(); |
|
| 69 | $this->add_new_site_link(); |
|
| 70 | } |
|
| 71 | ||
| 72 | ksort( $GLOBALS['menu'] ); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Forces Posts menu to WPAdmin for Atomic sites only. |
|
| @@ 42-55 (lines=14) @@ | ||
| 39 | /** |
|
| 40 | * Create the desired menu output. |
|
| 41 | */ |
|
| 42 | public function reregister_menu_items() { |
|
| 43 | parent::reregister_menu_items(); |
|
| 44 | ||
| 45 | $this->add_my_home_menu(); |
|
| 46 | ||
| 47 | // Not needed outside of wp-admin. |
|
| 48 | if ( ! $this->is_api_request ) { |
|
| 49 | $this->add_browse_sites_link(); |
|
| 50 | $this->add_site_card_menu(); |
|
| 51 | $this->add_new_site_link(); |
|
| 52 | } |
|
| 53 | ||
| 54 | ksort( $GLOBALS['menu'] ); |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * Adds the site switcher link if user has more than one site. |
|