PluginProbe
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel / 1.0
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel v1.0
1.7.1 1.7.0 1.6.0 1.5.2 trunk 0.1 0.2.0 0.2.1 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.4 0.4.1 0.4.2 0.4.3 1.0 1.1 1.2 1.3.1 1.4.0 1.4.1 1.5.0 1.5.1 All 26 releases
← All changes | includes/Admin.php +7 -9 1.21.0 View file →
@@ -29,9 +29,8 @@
29 29 new Admin\Adminbar();
30 30 new Admin\Opcache();
31 31 new Admin\Plugins();
32 32 new Admin\Email();
33 - new Admin\Optimizations();
34 33 }
35 34
36 35 /**
37 36 * Register admin page.
@@ -41,14 +40,14 @@
41 40 __( 'FlyWP', 'flywp' ),
42 41 __( 'FlyWP', 'flywp' ),
43 42 'manage_options',
44 43 self::PAGE_SLUG,
45 - [ $this, 'render_admin_page' ]
44 + [$this, 'render_admin_page']
46 45 );
47 46
48 - add_action( "admin_print_styles-{$hook}", [ $this, 'enqueue_styles' ] );
49 - add_action( "admin_print_scripts-{$hook}", [ $this, 'enqueue_js' ] );
50 - add_filter( 'removable_query_args', [ $this, 'removable_query_args' ] );
47 + add_action( "admin_print_styles-{$hook}", [$this, 'enqueue_styles'] );
48 + add_action( "admin_print_scripts-{$hook}", [$this, 'enqueue_js'] );
49 + add_filter( 'removable_query_args', [$this, 'removable_query_args'] );
51 50 }
52 51
53 52 /**
54 53 * Get admin page url.
@@ -86,9 +85,9 @@
86 85 */
87 86 public function enqueue_js() {
88 87 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
89 88
90 - wp_enqueue_script( 'flywp-admin-js', FLYWP_PLUGIN_URL . '/assets/js/admin' . $min . '.js', [ 'jquery' ], FLYWP_VERSION, true );
89 + wp_enqueue_script( 'flywp-admin-js', FLYWP_PLUGIN_URL . '/assets/js/admin' . $min . '.js', ['jquery'], FLYWP_VERSION, true );
91 90 }
92 91
93 92 /**
94 93 * Render admin page.
@@ -94,11 +93,10 @@
94 93 * Render admin page.
95 94 */
96 95 public function render_admin_page() {
97 96 $tabs = [
98 - 'cache' => __( 'Caching', 'flywp' ),
99 - 'email' => __( 'Email', 'flywp' ),
100 - 'optimizations' => __( 'Optimizations', 'flywp' ),
97 + 'cache' => __( 'Caching', 'flywp' ),
98 + 'email' => __( 'Email', 'flywp' ),
101 99 ];
102 100
103 101 $active_tab = isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $tabs ) ? $_GET['tab'] : 'cache';
104 102 $site_info = $this->fetch_site_info();