chore(release): Version 1.2.3 – Divi 5.19.0 geprüft

Divi 5.19 hat SyncToServerController::update() umgebaut (Speicher-Sperre
mit Konflikterkennung, Off-Canvas, zusätzliche edit_post-Prüfung). Die
nachgebauten Builder-Kennzeichen sind unverändert; Fingerabdruck und
Referenz per divi-check --update-reference aktualisiert, 5.19.0 in
DiviReleases::TESTED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-11-13 20:59:29 +01:00
co-authored by Claude Opus 5.5
parent 3b3c0df1f1
commit 4f2f7c1702
6 changed files with 37 additions and 7 deletions
+4 -1
View File
@@ -4,7 +4,7 @@ Tags: mcp, ai, divi, pods, oauth
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 1.2.2
Stable tag: 1.2.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -209,6 +209,9 @@ LIT MCP schreibt nur mit Divi-Versionen, die für diese Plugin-Version geprüft
== Changelog ==
= 1.2.3 =
* Kompatibilität: Divi 5.19.0 geprüft und freigegeben. Der Nachbau der Builder-Kennzeichen einer Seite folgt der geänderten Speicherroutine von Divi 5.19 (Fingerabdruck aktualisiert, Verhalten unverändert).
= 1.2.2 =
* Geändert: Die Cache-Anbindung arbeitet jetzt mit WP Fastest Cache statt WP Super Cache. Änderungen durch LIT MCP leeren den Cache von WP Fastest Cache automatisch (ein Beitrag samt Startseite, Feeds und Archiven, seitenweite Änderungen als Ganzes, höchstens alle 30 Sekunden mit Nachlauf). lit/cache-clear leert ihn auf Wunsch, auch für Entwürfe und gelöschte Beiträge. Im Reiter „Kompatibilität“ erscheint WP Fastest Cache mit einem Leeren-Test an einer Wegwerf-Seite.
* Entfernt: Die Anbindung an WP Super Cache.
@@ -13,5 +13,5 @@ defined('ABSPATH') || exit;
*/
final class DiviReleases
{
public const TESTED = ['5.2.1', '5.14.0', '5.15.1', '5.18.0', '5.18.2'];
public const TESTED = ['5.2.1', '5.14.0', '5.15.1', '5.18.0', '5.18.2', '5.19.0'];
}
@@ -54,5 +54,5 @@
"tb-api-save": "7ba452f4d73c9b676281ca6ddcfddd669502965db868bf478ef7804937e5bfc4",
"tb-load-setting-options": "2ea0a6925a1da5522489a417104b384b2bd77a16b25f4122b9503873a4c8a24e",
"tb-store-template": "3bf4ac6028ed99ed8ac3523c659392a5fce7818ef8a80ea226e01f5404eb441d",
"vb-sync-flags": "eca9117be21e8af22f19b1767e6fd79e468d814fbb7eefa74de9ccb895855839"
"vb-sync-flags": "86b55fe13016551869415678e1d67a33ddcb0c83d676e66ae1692a8373d5bfc1"
}
+1 -1
View File
@@ -61,7 +61,7 @@ defined('ABSPATH') || exit;
*/
final class Plugin
{
public const VERSION = '1.2.2';
public const VERSION = '1.2.3';
private static string $pluginFile = '';
private static ?SettingsPage $settingsPage = null;
@@ -1,9 +1,13 @@
function update( WP_REST_Request $request ) {
// Programmatic REST calls can share a PHP request; never reuse another call's canvas payload.
unset( $GLOBALS['divi_off_canvas_data'] );
$post_id = (int) $request->get_param( 'post_id' );
$post_status = $request->get_param( 'post_status' );
$content = $request->get_param( 'content' );
$page_settings_by_layout = $request->get_param( 'pageSettingsByLayout' );
$sync_type = $request->get_param( 'syncType' );
$content_bases = $request->get_param( 'contentBases' );
$content_bases = is_array( $content_bases ) ? $content_bases : [];
$options = $request->get_param( 'options' );
$prime_cache_url = $request->get_param( 'prime_cache_url' );
$main_loop_type = $request->get_param( 'mainLoopType' );
@@ -216,7 +220,29 @@ function update( WP_REST_Request $request ) {
);
}
$update = $should_persist_main_post ? wp_update_post( $post_update_data ) : 0;
$base_layout = $request->get_param( 'template_layout_to_save' );
$base_layout = in_array( $base_layout, [ 'header', 'body', 'footer' ], true ) ? $base_layout : 'postContent';
$update = $should_persist_main_post ? self::_save_post_snapshot( $post_update_data, $content_bases[ $base_layout ] ?? null ) : 0;
if ( $should_persist_main_post && ! isset( $post_update_data['post_content'] ) ) {
$post_content = (string) get_post_field( 'post_content', $post_id );
}
if ( $should_persist_main_post && ( is_wp_error( $update ) || ! $update ) ) {
if ( is_wp_error( $update ) && in_array( $update->get_error_code(), [ 'canvas_post_conflict', 'canvas_post_busy' ], true ) ) {
return self::response_success(
[
'save_verification' => false,
'canvas_save_error' => $update->get_error_message(),
]
);
}
// Do not run canvas promotion/deletion hooks when the new main content was not stored.
return self::response_error(
'post_save_failed',
esc_html__( 'Unable to save the page. Your changes have not been saved. Please try again.', 'et_builder_5' ),
[],
500
);
}
$layout_updates = [
[
@@ -252,7 +278,7 @@ function update( WP_REST_Request $request ) {
continue;
}
$layout_update_result = self::_update_layout_post_content( $target_post_id, $target_content );
$layout_update_result = self::_update_layout_post_content( $target_post_id, $target_content, $content_bases[ $target_layout ] ?? null );
if ( is_wp_error( $layout_update_result ) ) {
return self::response_error(
@@ -440,6 +466,7 @@ function update( WP_REST_Request $request ) {
[
'post_status' => $should_persist_main_post ? get_post_status( $update ) : $post_status,
'save_verification' => $save_verification_filtered,
'canvas_save_error' => OffCanvasHooks::get_canvas_save_error(),
'rendered_content' => $rendered_content,
]
);
+1 -1
View File
@@ -4,7 +4,7 @@
* Plugin Name: WP-LIT-MCP
* Plugin URI: https://git.loosen-it.de/Loosen-IT/WP-LIT-MCP
* Description: MCP-Server für WordPress, Divi 5 und Pods. Pflegt Inhalte, Medien und Divi-Seiten mit OAuth für KI-Assistenten.
* Version: 1.2.2
* Version: 1.2.3
* Update URI: https://git.loosen-it.de/Loosen-IT/WP-LIT-MCP
* Requires at least: 6.9
* Requires PHP: 8.1