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