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 | loader.php +14 -8 4.2.3trunk View file →
@@ -88,8 +88,9 @@
88 88 public static function instance() {
89 89 if ( is_null( self::$_instance ) ) {
90 90 self::$_instance = new self();
91 91 }
92 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- established hook name relied on across the plugin family; renaming would break integration.
92 93 do_action( 'bdthemes_ultimate_post_kit/init' );
93 94 return self::$_instance;
94 95 }
95 96
@@ -127,15 +128,20 @@
127 128 // if ($category_image == 'on') {
128 129 require BDTUPK_INC_PATH . 'ultimate-post-kit-metabox.php';
129 130 // }
130 131
131 - if ( ! class_exists( 'BdThemes_Duplicator' ) ) {
132 - if ( $duplicator == 'on' ) {
133 - require BDTUPK_PATH . 'includes/class-duplicator.php';
134 - }
132 + // The class is namespaced, so the old unqualified class_exists() check never
133 + // matched and the file could be loaded alongside a sibling plugin's duplicator.
134 + // Also skip our copy entirely when Live Copy Paste is providing the same feature,
135 + // since both provide the same duplicate-post admin action.
136 + if ( $duplicator == 'on'
137 + && ! class_exists( '\\UltimatePostKit\\Includes\\BdThemes_Duplicator' )
138 + && ! class_exists( '\\ElementPack\\Includes\\BdThemes_Duplicator' )
139 + && ! class_exists( '\\BdThemes_Duplicator' ) ) {
140 + require BDTUPK_PATH . 'includes/class-duplicator.php';
135 141 }
136 142
137 - if ( ! class_exists( 'BdThemes_Live_Copy' ) ) {
143 + if ( ! class_exists( '\\UltimatePostKit\\Includes\\LiveCopy\\BdThemes_Live_Copy' ) ) {
138 144 if ( ( $live_copy == 'on' ) && ( ! is_plugin_active( 'live-copy-paste/live-copy-paste.php' ) ) ) {
139 145 require_once BDTUPK_PATH . 'includes/live-copy/class-live-copy.php';
140 146 }
141 147 }
@@ -181,12 +187,12 @@
181 187 public function register_site_scripts() {
182 188
183 189 // $suffix = '.min';
184 190
185 - wp_register_script( 'goodshare', BDTUPK_ASSETS_URL . 'vendor/js/goodshare.min.js', [ 'jquery' ], '4.1.2', true );
186 - wp_register_script( 'scrolline', BDTUPK_ASSETS_URL . 'vendor/js/jquery.scrolline.min.js', [ 'jquery' ], '4.1.2', true );
191 + wp_register_script( 'goodshare', BDTUPK_ASSETS_URL . 'vendor/js/goodshare.min.js', [ 'jquery' ], '6.3.0', true );
192 + wp_register_script( 'scrolline', BDTUPK_ASSETS_URL . 'vendor/js/jquery.scrolline.min.js', [ 'jquery' ], BDTUPK_VER, true );
187 193 wp_register_script( 'news-ticker-js', BDTUPK_ASSETS_URL . 'vendor/js/newsticker.min.js', [ 'jquery' ], BDTUPK_VER, true );
188 - wp_register_script( 'fslightbox', BDTUPK_ASSETS_URL . 'vendor/js/fslightbox.min.js', [], '3.4.1', true );
194 + wp_register_script( 'fslightbox', BDTUPK_ASSETS_URL . 'vendor/js/fslightbox.min.js', [], '3.8.0', true );
189 195 wp_register_script( 'upk-animations', BDTUPK_ASSETS_URL . 'js/extensions/upk-animations.min.js', [ 'jquery' ], BDTUPK_VER, true );
190 196
191 197 wp_register_script( 'upk-ajax-loadmore', BDTUPK_ASSETS_URL . 'js/extensions/upk-ajax-loadmore.min.js', [ 'jquery' ], BDTUPK_VER, true );
192 198