PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / trunk
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets vtrunk
4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 All 146 releases
← All changes | admin/admin.php +6 -3 4.2.3trunk View file →
@@ -26,8 +26,9 @@
26 26 public function __construct()
27 27 {
28 28
29 29 // Embed the Script on our Plugin's Option Page Only
30 + // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only check of the current admin page slug for asset routing, no form data processed.
30 31 if (isset($_GET['page']) && ($_GET['page'] == 'ultimate_post_kit_options')) {
31 32 add_action('admin_enqueue_scripts', [$this, 'enqueue_styles']);
32 33 }
33 34 add_action('admin_init', [$this, 'enqueue_admin_script']);
@@ -73,9 +74,9 @@
73 74
74 75 wp_enqueue_style('bdt-uikit', BDTUPK_ADMIN_ASSETS_URL . 'css/bdt-uikit' . $direction_suffix . '.css', [], '3.17.0');
75 76 wp_enqueue_style('upk-font', BDTUPK_ASSETS_URL . 'css/upk-font' . $direction_suffix . '.css', [], BDTUPK_VER);
76 77
77 - wp_enqueue_script('bdt-uikit', BDTUPK_ADMIN_ASSETS_URL . 'js/bdt-uikit.min.js', ['jquery'], '3.17.0');
78 + wp_enqueue_script('bdt-uikit', BDTUPK_ADMIN_ASSETS_URL . 'js/bdt-uikit.min.js', ['jquery'], '3.17.0', true);
78 79 }
79 80
80 81 /**
81 82 * Row meta
@@ -184,9 +185,9 @@
184 185 wp_enqueue_script('jquery');
185 186 wp_enqueue_script('jquery-form');
186 187 wp_enqueue_script('upk-biggopti', BDTUPK_ADMIN_ASSETS_URL . 'js/upk-biggopti.min.js', ['jquery'], BDTUPK_VER, true);
187 188
188 - $dismissals = get_option('bdt_biggopti_dismissals', []);
189 + $dismissals = get_option('bdtupk_biggopti_dismissals', []);
189 190 $dismissed_display_ids = [];
190 191 $prefix = 'bdt-admin-biggopti-api-biggopti-';
191 192 foreach (array_keys($dismissals) as $key) {
192 193 if (strpos($key, $prefix) === 0) {
@@ -196,8 +197,9 @@
196 197 }
197 198 }
198 199
199 200 $current_sector = '';
201 + // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only check of the current admin page slug for display routing, no form data processed.
200 202 if ( isset( $_GET['page'] ) && $_GET['page'] === 'ultimate_post_kit_options' ) {
201 203 $current_sector = 'plugin_dashboard';
202 204 }
203 205 $script_config = [
@@ -209,10 +211,11 @@
209 211 'currentSector' => $current_sector,
210 212 ];
211 213 wp_localize_script('upk-biggopti', 'UltimatePostKitBiggoptiConfig', $script_config);
212 214
215 + // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only check of the current admin page slug for asset routing, no form data processed.
213 216 if (isset($_GET['page']) && ($_GET['page'] == 'ultimate_post_kit_options')) {
214 - wp_enqueue_script('chart', BDTUPK_ADMIN_ASSETS_URL . 'js/chart.min.js', ['jquery'], '3.9.1', true);
217 + wp_enqueue_script('chart', BDTUPK_ADMIN_ASSETS_URL . 'js/chart.min.js', ['jquery'], '4.5.1', true);
215 218 wp_enqueue_script('upk-admin', BDTUPK_ADMIN_ASSETS_URL . 'js/upk-admin.min.js', ['jquery', 'chart'], BDTUPK_VER, true);
216 219 }else{
217 220 wp_enqueue_script('upk-admin', BDTUPK_ADMIN_ASSETS_URL . 'js/upk-admin.min.js', ['jquery'], BDTUPK_VER, true);
218 221 }