| @@ -17,13 +17,8 @@ | ||
| 17 | 17 | * @return void |
| 18 | 18 | */ |
| 19 | 19 | public function __construct( $core ) { |
| 20 | 20 | parent::__construct( $core ); |
| 21 | - | |
| 22 | - if ( defined( 'PS_DISABLE_MENU' ) && PS_DISABLE_MENU ) { | |
| 23 | - return; | |
| 24 | - } | |
| 25 | - | |
| 26 | 21 | add_action( 'admin_head', [ $this, 'add_meta_nonce' ] ); |
| 27 | 22 | add_action( 'admin_menu', [ $this, 'add_menu_pages' ] ); |
| 28 | 23 | add_action( 'network_admin_menu', [ $this, 'network_menu' ] ); |
| 29 | 24 | add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_styles' ] ); |
| @@ -60,8 +55,9 @@ | ||
| 60 | 55 | */ |
| 61 | 56 | public function network_menu() { |
| 62 | 57 | add_menu_page( 'Patchstack', 'Patchstack', 'manage_options', 'patchstack-multisite', [ $this->plugin->multisite, 'sites_section_callback' ] ); |
| 63 | 58 | add_submenu_page( 'patchstack-multisite', 'Activate', 'Activate', 'manage_options', 'patchstack-multisite-settings', [ $this, 'render_settings_page' ] ); |
| 59 | + add_submenu_page( 'patchstack-multisite', 'Sites', 'Sites', 'manage_options', 'patchstack-multisite', [ $this->plugin->multisite, 'sites_section_callback' ] ); | |
| 64 | 60 | } |
| 65 | 61 | |
| 66 | 62 | /** |
| 67 | 63 | * Render the settings page. |