| @@ -21,10 +21,8 @@ | ||
| 21 | 21 | class Responsive { |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * The Elementor breakpoint prefix. |
| 25 | - * | |
| 26 | - * @deprecated 3.2.0 | |
| 27 | 25 | */ |
| 28 | 26 | const BREAKPOINT_OPTION_PREFIX = 'viewport_'; |
| 29 | 27 | |
| 30 | 28 | /** |
| @@ -32,9 +30,8 @@ | ||
| 32 | 30 | * |
| 33 | 31 | * Holds the default responsive breakpoints. |
| 34 | 32 | * |
| 35 | 33 | * @since 1.0.0 |
| 36 | - * @deprecated 3.2.0 | |
| 37 | 34 | * @access private |
| 38 | 35 | * @static |
| 39 | 36 | * |
| 40 | 37 | * @var array Default breakpoints. |
| @@ -53,9 +50,8 @@ | ||
| 53 | 50 | * |
| 54 | 51 | * Holds the editable breakpoint keys. |
| 55 | 52 | * |
| 56 | 53 | * @since 1.0.0 |
| 57 | - * @deprecated 3.2.0 | |
| 58 | 54 | * @access private |
| 59 | 55 | * @static |
| 60 | 56 | * |
| 61 | 57 | * @var array Editable breakpoint keys. |
| @@ -70,9 +66,9 @@ | ||
| 70 | 66 | * |
| 71 | 67 | * Retrieve the default responsive breakpoints. |
| 72 | 68 | * |
| 73 | 69 | * @since 1.0.0 |
| 74 | - * @deprecated 3.2.0 Use `Elementor\Core\Breakpoints\Manager::get_default_config()` instead. | |
| 70 | + * @deprecated 3.2.0 | |
| 75 | 71 | * @access public |
| 76 | 72 | * @static |
| 77 | 73 | * |
| 78 | 74 | * @return array Default breakpoints. |
| @@ -115,9 +111,9 @@ | ||
| 115 | 111 | */ |
| 116 | 112 | public static function get_breakpoints() { |
| 117 | 113 | return array_reduce( |
| 118 | 114 | array_keys( self::$default_breakpoints ), function( $new_array, $breakpoint_key ) { |
| 119 | - if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys, true ) ) { | |
| 115 | + if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys ) ) { | |
| 120 | 116 | $new_array[ $breakpoint_key ] = self::$default_breakpoints[ $breakpoint_key ]; |
| 121 | 117 | } else { |
| 122 | 118 | $saved_option = Plugin::$instance->kits_manager->get_current_settings( self::BREAKPOINT_OPTION_PREFIX . $breakpoint_key ); |
| 123 | 119 | |
| @@ -130,9 +126,9 @@ | ||
| 130 | 126 | } |
| 131 | 127 | |
| 132 | 128 | /** |
| 133 | 129 | * @since 2.1.0 |
| 134 | - * @deprecated 3.2.0 Use `Plugin::$instance->breakpoints->has_custom_breakpoints()` instead. | |
| 130 | + * @deprecated 3.2.0 | |
| 135 | 131 | * @access public |
| 136 | 132 | * @static |
| 137 | 133 | */ |
| 138 | 134 | public static function has_custom_breakpoints() { |
| @@ -137,14 +133,14 @@ | ||
| 137 | 133 | */ |
| 138 | 134 | public static function has_custom_breakpoints() { |
| 139 | 135 | Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.2.0', 'Plugin::$instance->breakpoints->has_custom_breakpoints()' ); |
| 140 | 136 | |
| 141 | - return (bool) array_diff( self::$default_breakpoints, self::get_breakpoints() ); | |
| 137 | + return ! ! array_diff( self::$default_breakpoints, self::get_breakpoints() ); | |
| 142 | 138 | } |
| 143 | 139 | |
| 144 | 140 | /** |
| 145 | 141 | * @since 2.1.0 |
| 146 | - * @deprecated 3.2.0 Use `Elementor\Core\Breakpoints\Manager::get_stylesheet_templates_path()` instead. | |
| 142 | + * @deprecated 3.2.0 | |
| 147 | 143 | * @access public |
| 148 | 144 | * @static |
| 149 | 145 | */ |
| 150 | 146 | public static function get_stylesheet_templates_path() { |
| @@ -154,9 +150,9 @@ | ||
| 154 | 150 | } |
| 155 | 151 | |
| 156 | 152 | /** |
| 157 | 153 | * @since 2.1.0 |
| 158 | - * @deprecated 3.2.0 Use `Elementor\Core\Breakpoints\Manager::compile_stylesheet_templates()` instead. | |
| 154 | + * @deprecated 3.2.0 | |
| 159 | 155 | * @access public |
| 160 | 156 | * @static |
| 161 | 157 | */ |
| 162 | 158 | public static function compile_stylesheet_templates() { |