PluginProbe
Elementor Website Builder – more than just a page builder / 3.3.1
Elementor Website Builder – more than just a page builder v3.3.1
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 -14 4.1.23.3.1 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.
@@ -77,10 +72,8 @@
77 72 *
78 73 * @return array Default breakpoints.
79 74 */
80 75 public static function get_default_breakpoints() {
81 - Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.2.0', 'Elementor\Core\Breakpoints\Manager::get_default_config()' );
82 -
83 76 return self::$default_breakpoints;
84 77 }
85 78
86 79 /**
@@ -88,9 +81,8 @@
88 81 *
89 82 * Retrieve the editable breakpoints.
90 83 *
91 84 * @since 1.0.0
92 - * @deprecated 3.2.0
93 85 * @access public
94 86 * @static
95 87 *
96 88 * @return array Editable breakpoints.
@@ -106,9 +98,8 @@
106 98 *
107 99 * Retrieve the responsive breakpoints.
108 100 *
109 101 * @since 1.0.0
110 - * @deprecated 3.2.0
111 102 * @access public
112 103 * @static
113 104 *
114 105 * @return array Responsive breakpoints.
@@ -115,9 +106,9 @@
115 106 */
116 107 public static function get_breakpoints() {
117 108 return array_reduce(
118 109 array_keys( self::$default_breakpoints ), function( $new_array, $breakpoint_key ) {
119 - if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys, true ) ) {
110 + if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys ) ) {
120 111 $new_array[ $breakpoint_key ] = self::$default_breakpoints[ $breakpoint_key ];
121 112 } else {
122 113 $saved_option = Plugin::$instance->kits_manager->get_current_settings( self::BREAKPOINT_OPTION_PREFIX . $breakpoint_key );
123 114
@@ -130,9 +121,8 @@
130 121 }
131 122
132 123 /**
133 124 * @since 2.1.0
134 - * @deprecated 3.2.0 Use `Plugin::$instance->breakpoints->has_custom_breakpoints()` instead.
135 125 * @access public
136 126 * @static
137 127 */
138 128 public static function has_custom_breakpoints() {
@@ -137,14 +127,13 @@
137 127 */
138 128 public static function has_custom_breakpoints() {
139 129 Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.2.0', 'Plugin::$instance->breakpoints->has_custom_breakpoints()' );
140 130
141 - return (bool) array_diff( self::$default_breakpoints, self::get_breakpoints() );
131 + return ! ! array_diff( self::$default_breakpoints, self::get_breakpoints() );
142 132 }
143 133
144 134 /**
145 135 * @since 2.1.0
146 - * @deprecated 3.2.0 Use `Elementor\Core\Breakpoints\Manager::get_stylesheet_templates_path()` instead.
147 136 * @access public
148 137 * @static
149 138 */
150 139 public static function get_stylesheet_templates_path() {
@@ -154,9 +143,8 @@
154 143 }
155 144
156 145 /**
157 146 * @since 2.1.0
158 - * @deprecated 3.2.0 Use `Elementor\Core\Breakpoints\Manager::compile_stylesheet_templates()` instead.
159 147 * @access public
160 148 * @static
161 149 */
162 150 public static function compile_stylesheet_templates() {