Skip to content

Commit 1d39381

Browse files
committed
Merge branch 'release/1.20.28'
2 parents 1b9f554 + 6ddf4f9 commit 1d39381

File tree

5 files changed

+16
-26
lines changed

5 files changed

+16
-26
lines changed

inc/panels.php

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -188,35 +188,20 @@ function vantage_panels_add_full_width_container() {
188188
}
189189
add_filter( 'siteorigin_panels_full_width_container', 'vantage_panels_add_full_width_container' );
190190

191-
$vantage_classic_editor_setup = false;
192191
if ( ! function_exists( 'vantage_setup_classic_editor' ) ) {
193192
function vantage_setup_classic_editor() {
194-
global $vantage_classic_editor_setup;
193+
static $vantage_classic_editor_setup;
194+
195195
if ( $vantage_classic_editor_setup ) {
196196
return;
197197
}
198+
198199
$vantage_classic_editor_setup = true;
199200

200-
// Check if this page is powered by the Block Editor.
201-
if ( ! is_admin() ) {
202-
global $post;
203-
if (
204-
! empty( $post ) &&
205-
! has_blocks( $post->post_content )
206-
) {
207-
return false;
208-
}
209-
} else {
210-
$current_screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null;
211-
212-
if (
213-
! empty( $current_screen ) &&
214-
method_exists( $current_screen, 'is_block_editor' )
215-
) {
216-
if ( $current_screen->is_block_editor() ) {
217-
return;
218-
}
219-
}
201+
// If the current page doesn't have postmeta, don't set up the Classic Editor hooks.
202+
$has_postmeta = get_post_meta( get_the_ID(), 'panels_data', true );
203+
if ( ! $has_postmeta && ! is_admin() ) {
204+
return false;
220205
}
221206

222207
add_filter( 'siteorigin_panels_row_styles', 'vantage_panels_row_styles' );

readme.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributors: siteorigin
44

55
Tags: two-columns, left-sidebar, right-sidebar, grid-layout, custom-background, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce
66

7-
Tested up to: 6.6
7+
Tested up to: 6.7
88
Requires at least: 4.7
99
Requires PHP: 5.6.20
1010
License: GPLv2 or later
@@ -106,6 +106,11 @@ This theme makes use of the SiteOrigin Settings Framework contained in the /inc
106106

107107
== Changelog ==
108108

109+
= 1.20.28 - 24 March 2025 =
110+
* Updated `Tested up to` tag.
111+
* Updated SiteOrigin Settings.
112+
* Improved Classic Editor detection: Prevented background images removed in SO Layout Block.
113+
109114
= 1.20.27 - 20 October 2024 =
110115
* Restored menu alignment setting when a menu has not been assigned to the theme's primary menu location.
111116
* Logo in Menu: Moved the spacing CSS to the logo wrapper container.

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Author URI: https://siteorigin.com/
55
Theme URI: https://siteorigin.com/theme/vantage/
66
Description: Vantage is a flexible multipurpose theme. Its strength lies in its tight integration with some powerful plugins like Page Builder for responsive page layouts, Smart Slider 3 for big beautiful sliders and WooCommerce to help you sell online. Vantage is fully responsive and retina ready. Use it to start a business site, portfolio or online store. We offer free support on our <a href="https://siteorigin.com/thread/">forum</a> (https://siteorigin.com/thread/).
77
Version: dev
8-
Tested up to: 6.5
8+
Tested up to: 6.7
99
Requires at least: 4.7
1010
Requires PHP: 5.6.20
1111
License: GNU General Public License v2 or later

style.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Author URI: https://siteorigin.com/
55
Theme URI: https://siteorigin.com/theme/vantage/
66
Description: Vantage is a flexible multipurpose theme. Its strength lies in its tight integration with some powerful plugins like Page Builder for responsive page layouts, Smart Slider 3 for big beautiful sliders and WooCommerce to help you sell online. Vantage is fully responsive and retina ready. Use it to start a business site, portfolio or online store. We offer free support on our <a href="https://siteorigin.com/thread/">forum</a> (https://siteorigin.com/thread/).
77
Version: dev
8-
Tested up to: 6.6
8+
Tested up to: 6.7
99
Requires at least: 4.7
1010
Requires PHP: 5.6.20
1111
License: GNU General Public License v2 or later

0 commit comments

Comments
 (0)