From aa1c8b42de2157e48d214577d775409d1e6b8293 Mon Sep 17 00:00:00 2001 From: Jan-Niclas Loosen Date: Fri, 16 Oct 2026 17:22:57 +0200 Subject: [PATCH] feat: Divi 5.15.1 freigeben Co-Authored-By: Claude Opus 5.5 --- src/Integrations/Divi/Release/DiviReleases.php | 2 +- src/Integrations/Divi/Release/fingerprints.json | 2 +- tests/Fixtures/divi/reference/vb-sync-flags.txt | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Integrations/Divi/Release/DiviReleases.php b/src/Integrations/Divi/Release/DiviReleases.php index 6679dec..ef019eb 100644 --- a/src/Integrations/Divi/Release/DiviReleases.php +++ b/src/Integrations/Divi/Release/DiviReleases.php @@ -12,5 +12,5 @@ defined('ABSPATH') || exit; */ final class DiviReleases { - public const TESTED = ['5.2.1', '5.14.0']; + public const TESTED = ['5.2.1', '5.14.0', '5.15.1']; } diff --git a/src/Integrations/Divi/Release/fingerprints.json b/src/Integrations/Divi/Release/fingerprints.json index a0a1238..a84b423 100644 --- a/src/Integrations/Divi/Release/fingerprints.json +++ b/src/Integrations/Divi/Release/fingerprints.json @@ -3,5 +3,5 @@ "tb-api-save": "7ba452f4d73c9b676281ca6ddcfddd669502965db868bf478ef7804937e5bfc4", "tb-load-setting-options": "2ea0a6925a1da5522489a417104b384b2bd77a16b25f4122b9503873a4c8a24e", "tb-store-template": "3bf4ac6028ed99ed8ac3523c659392a5fce7818ef8a80ea226e01f5404eb441d", - "vb-sync-flags": "6f290c0b8024ec2d391de22ca8dcdb7f58954ddeeaded64134245a0941864924" + "vb-sync-flags": "d13fea1922126b04edf7d60d6407aef66a37a57252581508fce9c43e1fdc45a0" } diff --git a/tests/Fixtures/divi/reference/vb-sync-flags.txt b/tests/Fixtures/divi/reference/vb-sync-flags.txt index 92724c5..2f424df 100644 --- a/tests/Fixtures/divi/reference/vb-sync-flags.txt +++ b/tests/Fixtures/divi/reference/vb-sync-flags.txt @@ -197,6 +197,20 @@ function update( WP_REST_Request $request ) { // main-query loop post and must not be converted to Divi (#49679). $main_post = get_post( $post_id ); $should_persist_main_post = $main_post instanceof \WP_Post && 'singular' === $main_loop_type; + + if ( + $should_persist_main_post + && $has_post_content_payload + && GlobalLayout::is_global_layout_template( $post_id ) + && GlobalLayout::has_component_reference_cycle( $post_id, $post_content ) + ) { + return self::response_error( + 'divi_component_reference_cycle', + esc_html__( 'A Component cannot be placed inside itself.', 'et_builder_5' ), + [ 'status' => 400 ] + ); + } + $update = $should_persist_main_post ? wp_update_post( $post_update_data ) : 0; $layout_updates = [