Deactivation now clears the endpoint-check transient and the cached rewrite rules (forcing WordPress to regenerate them without this plugin's routes on the next request) and activation asks mcp-oauth to re-flush its own rules. uninstall.php removes all own options/transient/cron/table across every site of a network, delegating to the new self-contained LIT\MCP\Uninstaller class so it works without the plugin's autoloader and is unit-testable on its own. mcp-oauth's data (JWT secret, rewrite marker, refresh-token meta, application passwords) is left untouched, as is every post/attachment/revision. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
27 lines
892 B
XML
27 lines
892 B
XML
<?xml version="1.0"?>
|
|
<ruleset name="wp-lit-mcp">
|
|
<file>src</file>
|
|
<file>wp-lit-mcp.php</file>
|
|
<file>uninstall.php</file>
|
|
<exclude-pattern>/vendor/*</exclude-pattern>
|
|
<arg value="sp"/>
|
|
<arg name="extensions" value="php"/>
|
|
<arg name="basepath" value="."/>
|
|
<rule ref="PSR12"/>
|
|
<rule ref="WordPress.Security">
|
|
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped"/>
|
|
</rule>
|
|
<rule ref="WordPress.DB.PreparedSQL"/>
|
|
<rule ref="WordPress.DB.PreparedSQLPlaceholders"/>
|
|
<rule ref="WordPress.WP.AlternativeFunctions"/>
|
|
<rule ref="WordPress.WP.I18n">
|
|
<properties>
|
|
<property name="text_domain" type="array">
|
|
<element value="wp-lit-mcp"/>
|
|
</property>
|
|
</properties>
|
|
</rule>
|
|
<rule ref="PHPCompatibilityWP"/>
|
|
<config name="testVersion" value="8.1-"/>
|
|
</ruleset>
|