| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | */ |
| 55 | 55 | public function enqueue_feedback_dialog_scripts() { |
| 56 | 56 | add_action( 'admin_footer', [ $this, 'print_deactivate_feedback_dialog' ] ); |
| 57 | 57 | |
| 58 | - $suffix = Utils::is_script_debug() ? '' : '.min'; | |
| 58 | + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; | |
| 59 | 59 | |
| 60 | 60 | wp_register_script( |
| 61 | 61 | 'elementor-admin-feedback', |
| 62 | 62 | ELEMENTOR_ASSETS_URL . 'js/admin-feedback' . $suffix . '.js', |
| @@ -70,8 +70,18 @@ | ||
| 70 | 70 | |
| 71 | 71 | wp_enqueue_script( 'elementor-admin-feedback' ); |
| 72 | 72 | |
| 73 | 73 | wp_set_script_translations( 'elementor-admin-feedback', 'elementor' ); |
| 74 | + } | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * @since 2.3.0 | |
| 78 | + * @deprecated 3.1.0 | |
| 79 | + */ | |
| 80 | + public function localize_feedback_dialog_settings() { | |
| 81 | + Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.1.0' ); | |
| 82 | + | |
| 83 | + return []; | |
| 74 | 84 | } |
| 75 | 85 | |
| 76 | 86 | /** |
| 77 | 87 | * Print deactivate feedback dialog. |