← All changes
|
vendor/wordpress/mcp-adapter/includes/Plugin.php
+4
-1
4.3.0-beta1
→
4.3.1
View file →
| @@ -12,8 +12,11 @@ | ||
| 12 | 12 | namespace WP\MCP; |
| 13 | 13 | |
| 14 | 14 | use WP\MCP\Core\McpAdapter; |
| 15 | 15 | |
| 16 | +// Exit if accessed directly. | |
| 17 | +defined( 'ABSPATH' ) || exit; | |
| 18 | + | |
| 16 | 19 | /** |
| 17 | 20 | * Class - Plugin |
| 18 | 21 | */ |
| 19 | 22 | final class Plugin { |
| @@ -72,9 +75,9 @@ | ||
| 72 | 75 | add_action( |
| 73 | 76 | 'admin_notices', |
| 74 | 77 | static function () { |
| 75 | 78 | wp_admin_notice( |
| 76 | - __( 'Abilities API not available (wp_register_ability function not found)', 'mcp-adapter' ), | |
| 79 | + __( 'MCP Adapter requires WordPress 6.9 or newer. The Abilities API is included in WordPress core.', 'mcp-adapter' ), | |
| 77 | 80 | array( |
| 78 | 81 | 'type' => 'error', |
| 79 | 82 | 'dismiss' => false, |
| 80 | 83 | ), |