| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Admin page slug. |
| 9 | 9 | */ |
| 10 | - const PAGE_SLUG = 'flywp'; | |
| 10 | + public const PAGE_SLUG = 'flywp'; | |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Screen name. |
| 14 | 14 | * |
| @@ -13,11 +13,12 @@ | ||
| 13 | 13 | * Screen name. |
| 14 | 14 | * |
| 15 | 15 | * @var string |
| 16 | 16 | */ |
| 17 | - const SCREEN_NAME = 'dashboard_page_flywp'; | |
| 17 | + public const SCREEN_NAME = 'dashboard_page_flywp'; | |
| 18 | 18 | |
| 19 | - public $fastcgi = null; | |
| 19 | + public $fastcgi = null; | |
| 20 | + public $litespeed = null; | |
| 20 | 21 | |
| 21 | 22 | /** |
| 22 | 23 | * Admin constructor. |
| 23 | 24 | */ |
| @@ -23,9 +24,10 @@ | ||
| 23 | 24 | */ |
| 24 | 25 | public function __construct() { |
| 25 | 26 | add_action( 'admin_menu', [ $this, 'register_admin_page' ] ); |
| 26 | 27 | |
| 27 | - $this->fastcgi = new Admin\Fastcgi_Cache(); | |
| 28 | + $this->fastcgi = new Admin\Fastcgi_Cache(); | |
| 29 | + $this->litespeed = new Admin\Litespeed(); | |
| 28 | 30 | |
| 29 | 31 | new Admin\Adminbar(); |
| 30 | 32 | new Admin\Opcache(); |
| 31 | 33 | new Admin\Plugins(); |
| @@ -99,8 +101,9 @@ | ||
| 99 | 101 | 'email' => __( 'Email', 'flywp' ), |
| 100 | 102 | 'optimizations' => __( 'Optimizations', 'flywp' ), |
| 101 | 103 | ]; |
| 102 | 104 | |
| 105 | + // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 103 | 106 | $active_tab = isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $tabs ) ? $_GET['tab'] : 'cache'; |
| 104 | 107 | $site_info = $this->fetch_site_info(); |
| 105 | 108 | $app_site_url = $this->get_site_url( $site_info ); |
| 106 | 109 | |