PluginProbe
Elementor Website Builder – more than just a page builder / 3.27.4
Elementor Website Builder – more than just a page builder v3.27.4
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/preview.php +2 -15 4.1.0-dev33.27.4 View file →
@@ -194,20 +194,8 @@
194 194 return true;
195 195 }
196 196
197 197 /**
198 - * Whether WordPress post preview or Elementor preview iframe is active.
199 - *
200 - * @since 4.1.0
201 - * @access public
202 - *
203 - * @return bool
204 - */
205 - public function is_editor_or_preview() {
206 - return is_preview() || $this->is_preview_mode();
207 - }
208 -
209 - /**
210 198 * Builder wrapper.
211 199 *
212 200 * Used to add an empty HTML wrapper for the builder, the javascript will add
213 201 * the content later.
@@ -250,9 +238,9 @@
250 238 Plugin::$instance->elements_manager->enqueue_elements_styles();
251 239
252 240 Plugin::$instance->widgets_manager->enqueue_widgets_styles();
253 241
254 - $suffix = Utils::is_script_debug() ? '' : '.min';
242 + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
255 243
256 244 $direction_suffix = is_rtl() ? '-rtl' : '';
257 245
258 246 wp_register_style(
@@ -306,11 +294,10 @@
306 294 private function enqueue_scripts() {
307 295 Plugin::$instance->frontend->register_scripts();
308 296
309 297 Plugin::$instance->widgets_manager->enqueue_widgets_scripts();
310 - Plugin::$instance->elements_manager->enqueue_elements_scripts();
311 298
312 - $suffix = Utils::is_script_debug() ? '' : '.min';
299 + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
313 300
314 301 wp_enqueue_script(
315 302 'elementor-inline-editor',
316 303 ELEMENTOR_ASSETS_URL . 'lib/inline-editor/js/inline-editor' . $suffix . '.js',