PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← 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 ),