PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.3
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.3
3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 All 261 releases
← All changes | admin/modules/template-library/class-manager.php +2 -9 3.13.1 → 3.13.3 View file →
@@ -101,19 +101,12 @@
101 101 add_action('admin_footer', [$this, 'add_default_view']);
102 102 add_action('admin_enqueue_scripts', [$this, 'enqueue_scripts']);
103 103 }
104 104
105 +
105 106 public function enqueue_scripts($hook)
106 107 {
107 - if (in_array($hook, ['wpfunnels_page_wp_funnels', 'wpfunnels_page_wpf_templates', 'wpfunnels_page_store_checkout'])) {
108 - $funnel_id = 0;
109 - if (isset($_GET['page'])) {
110 - if ($_GET['page'] === 'edit_funnel') {
111 - if (isset($_GET['id'])) {
112 - $funnel_id = sanitize_text_field($_GET['id']);
113 - }
114 - }
115 - }
108 + if (in_array($hook, ['wpfunnels_page_store_checkout'], true)) {
116 109 wp_enqueue_script('funnel-template-library', WPFNL_URL . 'admin/assets/dist/js/template-library.min.js', ['jquery', 'wp-util'], WPFNL_VERSION, true);
117 110 Wpfnl_functions::enqueue_bundle_style( 'template-library', 'funnel-template-library-bundle' );
118 111 }
119 112 }