PluginProbe
Elementor Website Builder – more than just a page builder / 3.7.4
Elementor Website Builder – more than just a page builder v3.7.4
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | core/responsive/responsive.php +2 -11 4.1.23.7.4 View file →
@@ -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,8 @@
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.
75 70 * @access public
76 71 * @static
77 72 *
78 73 * @return array Default breakpoints.
@@ -88,9 +83,8 @@
88 83 *
89 84 * Retrieve the editable breakpoints.
90 85 *
91 86 * @since 1.0.0
92 - * @deprecated 3.2.0
93 87 * @access public
94 88 * @static
95 89 *
96 90 * @return array Editable breakpoints.
@@ -115,9 +109,9 @@
115 109 */
116 110 public static function get_breakpoints() {
117 111 return array_reduce(
118 112 array_keys( self::$default_breakpoints ), function( $new_array, $breakpoint_key ) {
119 - if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys, true ) ) {
113 + if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys ) ) {
120 114 $new_array[ $breakpoint_key ] = self::$default_breakpoints[ $breakpoint_key ];
121 115 } else {
122 116 $saved_option = Plugin::$instance->kits_manager->get_current_settings( self::BREAKPOINT_OPTION_PREFIX . $breakpoint_key );
123 117
@@ -130,9 +124,8 @@
130 124 }
131 125
132 126 /**
133 127 * @since 2.1.0
134 - * @deprecated 3.2.0 Use `Plugin::$instance->breakpoints->has_custom_breakpoints()` instead.
135 128 * @access public
136 129 * @static
137 130 */
138 131 public static function has_custom_breakpoints() {
@@ -137,14 +130,13 @@
137 130 */
138 131 public static function has_custom_breakpoints() {
139 132 Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.2.0', 'Plugin::$instance->breakpoints->has_custom_breakpoints()' );
140 133
141 - return (bool) array_diff( self::$default_breakpoints, self::get_breakpoints() );
134 + return ! ! array_diff( self::$default_breakpoints, self::get_breakpoints() );
142 135 }
143 136
144 137 /**
145 138 * @since 2.1.0
146 - * @deprecated 3.2.0 Use `Elementor\Core\Breakpoints\Manager::get_stylesheet_templates_path()` instead.
147 139 * @access public
148 140 * @static
149 141 */
150 142 public static function get_stylesheet_templates_path() {
@@ -154,9 +146,8 @@
154 146 }
155 147
156 148 /**
157 149 * @since 2.1.0
158 - * @deprecated 3.2.0 Use `Elementor\Core\Breakpoints\Manager::compile_stylesheet_templates()` instead.
159 150 * @access public
160 151 * @static
161 152 */
162 153 public static function compile_stylesheet_templates() {