| @@ -11,17 +11,15 @@ | ||
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * This class is deprecated, use Plugin::$instance->kits_manager->get_active_kit_for_frontend() instead. |
| 14 | 14 | * it changed to support call like this: Manager::get_settings_managers( 'general' )->get_model()->get_settings( 'elementor_default_generic_fonts' ) |
| 15 | - * | |
| 16 | - * @deprecated 3.0.0 Use `Plugin::$instance->kits_manager->get_active_kit_for_frontend()` instead. | |
| 15 | + * @deprecated since 3.0.0 | |
| 17 | 16 | */ |
| 17 | + | |
| 18 | 18 | class Manager extends CSS_Manager { |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Meta key for the general settings. |
| 22 | - * | |
| 23 | - * @deprecated 3.0.0 | |
| 24 | 22 | */ |
| 25 | 23 | const META_KEY = '_elementor_general_settings'; |
| 26 | 24 | |
| 27 | 25 | /** |
| @@ -29,15 +27,14 @@ | ||
| 29 | 27 | * |
| 30 | 28 | * Initializing Elementor general settings manager. |
| 31 | 29 | * |
| 32 | 30 | * @since 1.6.0 |
| 33 | - * @deprecated 3.0.0 | |
| 34 | 31 | * @access public |
| 35 | 32 | */ |
| 36 | 33 | public function __construct() { |
| 37 | 34 | parent::__construct(); |
| 38 | 35 | |
| 39 | - _deprecated_file( __FILE__, '3.0.0', 'Plugin::$instance->kits_manager->get_active_kit_for_frontend()' ); | |
| 36 | + // TODO: _deprecated_file( __FILE__, '3.0.0', 'Plugin::$instance->kits_manager->get_active_kit_for_frontend()' ); | |
| 40 | 37 | |
| 41 | 38 | $name = $this->get_css_file_name(); |
| 42 | 39 | |
| 43 | 40 | remove_action( "elementor/css-file/{$name}/parse", [ $this, 'add_settings_css_rules' ] ); |
| @@ -48,9 +45,8 @@ | ||
| 48 | 45 | * |
| 49 | 46 | * Retrieve general settings manager name. |
| 50 | 47 | * |
| 51 | 48 | * @since 1.6.0 |
| 52 | - * @deprecated 3.0.0 | |
| 53 | 49 | * @access public |
| 54 | 50 | * |
| 55 | 51 | * @return string Manager name. |
| 56 | 52 | */ |
| @@ -63,9 +59,8 @@ | ||
| 63 | 59 | * |
| 64 | 60 | * Retrieve the model for settings configuration. |
| 65 | 61 | * |
| 66 | 62 | * @since 1.6.0 |
| 67 | - * @deprecated 3.0.0 | |
| 68 | 63 | * @access public |
| 69 | 64 | * |
| 70 | 65 | * @return BaseModel The model object. |
| 71 | 66 | */ |
| @@ -73,9 +68,9 @@ | ||
| 73 | 68 | return $this->get_model(); |
| 74 | 69 | } |
| 75 | 70 | |
| 76 | 71 | /** |
| 77 | - * @deprecated 3.0.0 | |
| 72 | + * @deprecated | |
| 78 | 73 | */ |
| 79 | 74 | protected function get_saved_settings( $id ) { |
| 80 | 75 | return []; |
| 81 | 76 | } |
| @@ -85,10 +80,10 @@ | ||
| 85 | 80 | * |
| 86 | 81 | * Retrieve CSS file name for the general settings manager. |
| 87 | 82 | * |
| 88 | 83 | * @since 1.6.0 |
| 89 | - * @deprecated 3.0.0 | |
| 90 | 84 | * @access protected |
| 85 | + * @return string | |
| 91 | 86 | * |
| 92 | 87 | * @return string CSS file name. |
| 93 | 88 | */ |
| 94 | 89 | protected function get_css_file_name() { |
| @@ -95,18 +90,16 @@ | ||
| 95 | 90 | return 'global'; |
| 96 | 91 | } |
| 97 | 92 | |
| 98 | 93 | /** |
| 99 | - * @deprecated 3.0.0 | |
| 100 | - * | |
| 101 | - * @throws \Exception If settings validation fails or update operation encounters errors. | |
| 94 | + * @deprecated | |
| 102 | 95 | */ |
| 103 | 96 | protected function save_settings_to_db( array $settings, $id ) { |
| 104 | - throw new \Exception( __CLASS__ . ' is deprecated. Use Plugin::$instance->kits_manager->get_active_kit_for_frontend() instead.' ); | |
| 97 | + throw new \Exception( __CLASS__ . ' is deprecated. Use Plugin::$instance->kits_manager->get_active_kit_for_frontend()' ); | |
| 105 | 98 | } |
| 106 | 99 | |
| 107 | 100 | /** |
| 108 | - * @deprecated 3.0.0 | |
| 101 | + * @deprecated | |
| 109 | 102 | */ |
| 110 | 103 | protected function get_model_for_css_file( Base $css_file ) { |
| 111 | 104 | return false; |
| 112 | 105 | } |
| @@ -111,9 +104,9 @@ | ||
| 111 | 104 | return false; |
| 112 | 105 | } |
| 113 | 106 | |
| 114 | 107 | /** |
| 115 | - * @deprecated 3.0.0 | |
| 108 | + * @deprecated | |
| 116 | 109 | */ |
| 117 | 110 | protected function get_css_file_for_update( $id ) { |
| 118 | 111 | return false; |
| 119 | 112 | } |