| @@ -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. |
| @@ -246,13 +234,11 @@ | ||
| 246 | 234 | wp_add_inline_script( 'jquery-migrate', 'jQuery.holdReady( true );' ); |
| 247 | 235 | |
| 248 | 236 | Plugin::$instance->frontend->enqueue_styles(); |
| 249 | 237 | |
| 250 | - Plugin::$instance->elements_manager->enqueue_elements_styles(); | |
| 251 | - | |
| 252 | 238 | Plugin::$instance->widgets_manager->enqueue_widgets_styles(); |
| 253 | 239 | |
| 254 | - $suffix = Utils::is_script_debug() ? '' : '.min'; | |
| 240 | + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; | |
| 255 | 241 | |
| 256 | 242 | $direction_suffix = is_rtl() ? '-rtl' : ''; |
| 257 | 243 | |
| 258 | 244 | wp_register_style( |
| @@ -306,11 +292,10 @@ | ||
| 306 | 292 | private function enqueue_scripts() { |
| 307 | 293 | Plugin::$instance->frontend->register_scripts(); |
| 308 | 294 | |
| 309 | 295 | Plugin::$instance->widgets_manager->enqueue_widgets_scripts(); |
| 310 | - Plugin::$instance->elements_manager->enqueue_elements_scripts(); | |
| 311 | 296 | |
| 312 | - $suffix = Utils::is_script_debug() ? '' : '.min'; | |
| 297 | + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; | |
| 313 | 298 | |
| 314 | 299 | wp_enqueue_script( |
| 315 | 300 | 'elementor-inline-editor', |
| 316 | 301 | ELEMENTOR_ASSETS_URL . 'lib/inline-editor/js/inline-editor' . $suffix . '.js', |