| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Core\Responsive; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\Responsive\Files\Frontend; |
| 5 | +use Elementor\Plugin; | |
| 5 | 6 | |
| 6 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 8 | exit; // Exit if accessed directly. |
| 8 | 9 | } |
| @@ -19,9 +20,9 @@ | ||
| 19 | 20 | |
| 20 | 21 | /** |
| 21 | 22 | * The Elementor breakpoint prefix. |
| 22 | 23 | */ |
| 23 | - const BREAKPOINT_OPTION_PREFIX = 'elementor_viewport_'; | |
| 24 | + const BREAKPOINT_OPTION_PREFIX = 'viewport_'; | |
| 24 | 25 | |
| 25 | 26 | /** |
| 26 | 27 | * Default breakpoints. |
| 27 | 28 | * |
| @@ -104,9 +105,9 @@ | ||
| 104 | 105 | array_keys( self::$default_breakpoints ), function( $new_array, $breakpoint_key ) { |
| 105 | 106 | if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys ) ) { |
| 106 | 107 | $new_array[ $breakpoint_key ] = self::$default_breakpoints[ $breakpoint_key ]; |
| 107 | 108 | } else { |
| 108 | - $saved_option = get_option( self::BREAKPOINT_OPTION_PREFIX . $breakpoint_key ); | |
| 109 | + $saved_option = Plugin::$instance->kits_manager->get_current_settings( self::BREAKPOINT_OPTION_PREFIX . $breakpoint_key ); | |
| 109 | 110 | |
| 110 | 111 | $new_array[ $breakpoint_key ] = $saved_option ? (int) $saved_option : self::$default_breakpoints[ $breakpoint_key ]; |
| 111 | 112 | } |
| 112 | 113 | |