| @@ -40,35 +40,16 @@ | ||
| 40 | 40 | * Fired by `elementor/editor/localize_settings` filter. |
| 41 | 41 | * |
| 42 | 42 | * @since 1.7.0 |
| 43 | 43 | * @access public |
| 44 | + * @deprecated 3.1.0 | |
| 44 | 45 | * |
| 45 | - * @param array $settings Localized settings. | |
| 46 | - * | |
| 47 | 46 | * @return array Localized settings. |
| 48 | 47 | */ |
| 49 | - public function localize_settings( $settings ) { | |
| 50 | - $settings = array_replace_recursive( $settings, [ | |
| 51 | - 'i18n' => [ | |
| 52 | - 'history' => __( 'History', 'elementor' ), | |
| 53 | - 'template' => __( 'Template', 'elementor' ), | |
| 54 | - 'added' => __( 'Added', 'elementor' ), | |
| 55 | - 'removed' => __( 'Removed', 'elementor' ), | |
| 56 | - 'edited' => __( 'Edited', 'elementor' ), | |
| 57 | - 'moved' => __( 'Moved', 'elementor' ), | |
| 58 | - 'pasted' => __( 'Pasted', 'elementor' ), | |
| 59 | - 'editing_started' => __( 'Editing Started', 'elementor' ), | |
| 60 | - 'style_pasted' => __( 'Style Pasted', 'elementor' ), | |
| 61 | - 'style_reset' => __( 'Style Reset', 'elementor' ), | |
| 62 | - 'settings_reset' => __( 'Settings Reset', 'elementor' ), | |
| 63 | - 'enabled' => __( 'Enabled', 'elementor' ), | |
| 64 | - 'disabled' => __( 'Disabled', 'elementor' ), | |
| 65 | - 'all_content' => __( 'All Content', 'elementor' ), | |
| 66 | - 'elements' => __( 'Elements', 'elementor' ), | |
| 67 | - ], | |
| 68 | - ] ); | |
| 48 | + public function localize_settings() { | |
| 49 | + Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.1.0' ); | |
| 69 | 50 | |
| 70 | - return $settings; | |
| 51 | + return []; | |
| 71 | 52 | } |
| 72 | 53 | |
| 73 | 54 | /** |
| 74 | 55 | * @since 2.3.0 |
| @@ -87,9 +68,7 @@ | ||
| 87 | 68 | * @since 1.7.0 |
| 88 | 69 | * @access public |
| 89 | 70 | */ |
| 90 | 71 | public function __construct() { |
| 91 | - add_filter( 'elementor/editor/localize_settings', [ $this, 'localize_settings' ] ); | |
| 92 | - | |
| 93 | 72 | add_action( 'elementor/editor/init', [ $this, 'add_templates' ] ); |
| 94 | 73 | } |
| 95 | 74 | } |