| @@ -234,13 +234,11 @@ | ||
| 234 | 234 | wp_add_inline_script( 'jquery-migrate', 'jQuery.holdReady( true );' ); |
| 235 | 235 | |
| 236 | 236 | Plugin::$instance->frontend->enqueue_styles(); |
| 237 | 237 | |
| 238 | - Plugin::$instance->elements_manager->enqueue_elements_styles(); | |
| 239 | - | |
| 240 | 238 | Plugin::$instance->widgets_manager->enqueue_widgets_styles(); |
| 241 | 239 | |
| 242 | - $suffix = Utils::is_script_debug() ? '' : '.min'; | |
| 240 | + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; | |
| 243 | 241 | |
| 244 | 242 | $direction_suffix = is_rtl() ? '-rtl' : ''; |
| 245 | 243 | |
| 246 | 244 | wp_register_style( |
| @@ -294,11 +292,10 @@ | ||
| 294 | 292 | private function enqueue_scripts() { |
| 295 | 293 | Plugin::$instance->frontend->register_scripts(); |
| 296 | 294 | |
| 297 | 295 | Plugin::$instance->widgets_manager->enqueue_widgets_scripts(); |
| 298 | - Plugin::$instance->elements_manager->enqueue_elements_scripts(); | |
| 299 | 296 | |
| 300 | - $suffix = Utils::is_script_debug() ? '' : '.min'; | |
| 297 | + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; | |
| 301 | 298 | |
| 302 | 299 | wp_enqueue_script( |
| 303 | 300 | 'elementor-inline-editor', |
| 304 | 301 | ELEMENTOR_ASSETS_URL . 'lib/inline-editor/js/inline-editor' . $suffix . '.js', |