| @@ -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': |