feat: Divi 5.15.1 freigeben
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
47090621c7
commit
aa1c8b42de
@@ -12,5 +12,5 @@ defined('ABSPATH') || exit;
|
|||||||
*/
|
*/
|
||||||
final class DiviReleases
|
final class DiviReleases
|
||||||
{
|
{
|
||||||
public const TESTED = ['5.2.1', '5.14.0'];
|
public const TESTED = ['5.2.1', '5.14.0', '5.15.1'];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
"tb-api-save": "7ba452f4d73c9b676281ca6ddcfddd669502965db868bf478ef7804937e5bfc4",
|
"tb-api-save": "7ba452f4d73c9b676281ca6ddcfddd669502965db868bf478ef7804937e5bfc4",
|
||||||
"tb-load-setting-options": "2ea0a6925a1da5522489a417104b384b2bd77a16b25f4122b9503873a4c8a24e",
|
"tb-load-setting-options": "2ea0a6925a1da5522489a417104b384b2bd77a16b25f4122b9503873a4c8a24e",
|
||||||
"tb-store-template": "3bf4ac6028ed99ed8ac3523c659392a5fce7818ef8a80ea226e01f5404eb441d",
|
"tb-store-template": "3bf4ac6028ed99ed8ac3523c659392a5fce7818ef8a80ea226e01f5404eb441d",
|
||||||
"vb-sync-flags": "6f290c0b8024ec2d391de22ca8dcdb7f58954ddeeaded64134245a0941864924"
|
"vb-sync-flags": "d13fea1922126b04edf7d60d6407aef66a37a57252581508fce9c43e1fdc45a0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,6 +197,20 @@ function update( WP_REST_Request $request ) {
|
|||||||
// main-query loop post and must not be converted to Divi (#49679).
|
// main-query loop post and must not be converted to Divi (#49679).
|
||||||
$main_post = get_post( $post_id );
|
$main_post = get_post( $post_id );
|
||||||
$should_persist_main_post = $main_post instanceof \WP_Post && 'singular' === $main_loop_type;
|
$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;
|
$update = $should_persist_main_post ? wp_update_post( $post_update_data ) : 0;
|
||||||
|
|
||||||
$layout_updates = [
|
$layout_updates = [
|
||||||
|
|||||||
Reference in New Issue
Block a user