PluginProbe
Float menu – awesome floating side menu / 7.2
Float menu – awesome floating side menu v7.2
7.2.5 trunk 2.1 2.2 3.0.1 3.1 3.2.2 3.3.1 3.5 3.5.1 3.5.2 3.5.3. 3.5.4 4.0 4.1 4.1.1 4.2 4.3 4.3.1 4.3.2 5.0 5.0.1 5.0.2 5.0.3 5.1 All 57 releases
← All changes | classes/Admin/Dashboard.php +5 -7 trunk7.2 View file →
@@ -12,10 +12,8 @@
12 12 */
13 13
14 14 namespace FloatMenuLite\Admin;
15 15
16 -defined( 'ABSPATH' ) || exit;
17 -
18 16 use FloatMenuLite\WOWP_Plugin;
19 17
20 18 class Dashboard {
21 19
@@ -62,9 +60,9 @@
62 60 $page = 'wow-plugins_page_' . WOWP_Plugin::SLUG;
63 61 if ( $page !== $hook ) {
64 62 return;
65 63 }
66 - do_action( WOWP_Plugin::PREFIX . '_admin_load_assets' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
64 + do_action( WOWP_Plugin::PREFIX . '_admin_load_assets' );
67 65
68 66 $slug = WOWP_Plugin::SLUG;
69 67 $version = WOWP_Plugin::info( 'version' );
70 68 $assets_url = WOWP_Plugin::url() . 'admin/assets/';
@@ -139,10 +137,10 @@
139 137 </h1>
140 138 <a href="<?php echo esc_url( Link::add_new_item() ); ?>" class="button button-primary">
141 139 <?php esc_html_e( 'Add New', 'float-menu' ); ?>
142 140 </a>
143 - <?php do_action( WOWP_Plugin::PREFIX . '_admin_after_button' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound ?>
144 - <?php do_action( WOWP_Plugin::PREFIX . '_admin_header_links' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound ?>
141 + <?php do_action( WOWP_Plugin::PREFIX . '_admin_after_button' ); ?>
142 + <?php do_action( WOWP_Plugin::PREFIX . '_admin_header_links' ); ?>
145 143 </div>
146 144 </div>
147 145 </div>
148 146 <?php
@@ -162,9 +160,9 @@
162 160
163 161 public static function menu(): void {
164 162 $pages = DashboardHelper::get_files( 'pages' );
165 163
166 - $pages = apply_filters(WOWP_Plugin::PREFIX. '_admin_pages_menu', $pages); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
164 + $pages = apply_filters(WOWP_Plugin::PREFIX. '_admin_pages_menu', $pages);
167 165
168 166 $current_page = self::get_current_page();
169 167
170 168 //No nonce checking is required as this is just reading the parameters.
@@ -208,9 +206,9 @@
208 206
209 207 $file = DashboardHelper::get_file( $current, 'pages' );
210 208
211 209 if ( $file !== false ) {
212 - $file = apply_filters( WOWP_Plugin::PREFIX . '_admin_filter_file', $file, $current ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
210 + $file = apply_filters( WOWP_Plugin::PREFIX . '_admin_filter_file', $file, $current );
213 211
214 212 $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/' . $file;
215 213
216 214 if ( file_exists( $page_path ) ) {