- Hints (PostPresenter::DIVI_NOTE, outline, catalog) and server instructions (tree_rev rule) name the Divi write tools; guides divi-shortform and divi-placeholders, additions to divi-structure, divi-attrs, overview (tool groups, 'nur lesen'), workflows, content-types. - D7 wording and the S7 exception in readme, guides and spec 1.3/5.2; readme 0.3.0. - ToolNamingTest: every referenced guide topic exists; overview lists exactly the topics. - tests/Integration/divi-write-smoke.sh: all write tools via OAuth, editor without unfiltered_html with benign probes (S6), Divi's own save filters on the new fixture synthetic-divi-filters.html (S7); admin-render.php accepts the new wrap class. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
||
|
||
/**
|
||
* Plugin Name: WP-LIT-MCP
|
||
* Description: MCP-Server für WordPress, Divi 5 und Pods – mit OAuth für claude.ai.
|
||
* Version: 0.3.0
|
||
* Requires at least: 6.9
|
||
* Requires PHP: 8.1
|
||
* Tested up to: 7.0
|
||
* Author: Jan-Niclas Loosen - Loosen-IT
|
||
* Author URI: https://loosen-it.de
|
||
* License: GPL-2.0-or-later
|
||
* Text Domain: wp-lit-mcp
|
||
*/
|
||
|
||
declare(strict_types=1);
|
||
|
||
defined('ABSPATH') || exit;
|
||
|
||
$lit_mcp_autoload = __DIR__ . '/vendor/autoload_packages.php';
|
||
|
||
if (! is_readable($lit_mcp_autoload)) {
|
||
add_action('admin_notices', static function (): void {
|
||
echo '<div class="notice notice-error"><p>'
|
||
. esc_html__(
|
||
'WP-LIT-MCP: Abhängigkeiten fehlen. Bitte "composer install --no-dev" im Plugin-Ordner ausführen.',
|
||
'wp-lit-mcp'
|
||
)
|
||
. '</p></div>';
|
||
});
|
||
return;
|
||
}
|
||
|
||
require_once $lit_mcp_autoload;
|
||
|
||
register_activation_hook(__FILE__, [\LIT\MCP\Lifecycle::class, 'activate']);
|
||
register_deactivation_hook(__FILE__, [\LIT\MCP\Lifecycle::class, 'deactivate']);
|
||
|
||
add_action('plugins_loaded', static function (): void {
|
||
\LIT\MCP\Plugin::boot(__FILE__);
|
||
});
|