PluginProbe
Elementor Website Builder – more than just a page builder / 3.10.0-dev1
Elementor Website Builder – more than just a page builder v3.10.0-dev1
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/files/frontend.php +5 -2 4.1.0-dev13.10.0-dev1 View file →
@@ -8,9 +8,9 @@
8 8 use Elementor\Plugin;
9 9 use Elementor\Utils;
10 10
11 11 if ( ! defined( 'ABSPATH' ) ) {
12 - exit; // Exit if accessed directly.
12 + exit; // Exit if accessed directly
13 13 }
14 14
15 15 class Frontend extends Base {
16 16
@@ -58,9 +58,9 @@
58 58 }
59 59 } elseif ( false === $breakpoint_index ) {
60 60 // If the breakpoint in the placeholder is not active - use a -1 value for the media query, to make
61 61 // sure the setting is printed (to avoid a PHP error) but doesn't apply.
62 - return -1;
62 + $value = -1;
63 63 } elseif ( 'WIDESCREEN' === $placeholder_data[1] ) {
64 64 $value = $breakpoints['widescreen']->get_value();
65 65 } else {
66 66 $breakpoint_index = array_search( strtolower( $placeholder_data[1] ), $breakpoints_keys, true );
@@ -175,8 +175,11 @@
175 175 * Converts responsive placeholders in Elementor CSS template files from the legacy format into the new format.
176 176 * Used for backwards compatibility for old Pro versions that were built with an Elementor Core version <3.2.0.
177 177 *
178 178 * @since 3.2.3
179 + *
180 + * @param $placeholder_data
181 + * @return mixed
179 182 */
180 183 private function maybe_convert_placeholder_data( $placeholder_data ) {
181 184 switch ( $placeholder_data[1] ) {
182 185 case 'SM':