PluginProbe
WDesignKit – AI Templates, Widget Builder & MCP Workflow / 2.7.0
WDesignKit – AI Templates, Widget Builder & MCP Workflow v2.7.0
2.7.1 2.7.0 2.6.6 2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.5.5 2.5.4 2.5.3 2.5.2 2.5.1 2.5.0 2.4.0 2.3.3 2.3.2 2.3.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 All 130 releases
← All changes | includes/abilities/settings/wdesignkit-rollback.php +13 -7 2.5.3 → 2.7.0 View file →
@@ -9,12 +9,12 @@
9 9 exit();
10 10 }
11 11
12 12 wp_register_ability('wdesignkit/list-rollback-versions', [
13 - 'label' => __('List WDesignKit Rollback Versions', 'sprout-mcp'),
13 + 'label' => __('List WDesignKit Rollback Versions', 'wdesignkit'),
14 14 'description' => __(
15 15 'Fetches the list of stable previous WDesignKit plugin versions available for rollback from wordpress.org. Excludes beta, RC, trunk, and dev versions, and any version equal to or newer than the currently installed version.',
16 - 'sprout-mcp',
16 + 'wdesignkit',
17 17 ),
18 18 'category' => 'wdesignkit',
19 19 'input_schema' => [
20 20 'type' => 'object',
@@ -28,10 +28,11 @@
28 28 'versions' => ['type' => 'array', 'items' => ['type' => 'string']],
29 29 ],
30 30 ],
31 31 'execute_callback' => 'wdesignkit_mcp_list_rollback_versions',
32 - 'permission_callback' => 'sprout_mcp_permission_callback',
32 + 'permission_callback' => 'wdesignkit_mcp_permission_callback',
33 33 'meta' => [
34 + 'public' => true,
34 35 'show_in_rest' => true,
35 36 'mcp' => ['public' => true],
36 37 'annotations' => [
37 38 'instructions' => implode("\n", [
@@ -46,12 +47,12 @@
46 47 ],
47 48 ]);
48 49
49 50 wp_register_ability('wdesignkit/rollback', [
50 - 'label' => __('Rollback WDesignKit to Previous Version', 'sprout-mcp'),
51 + 'label' => __('Rollback WDesignKit to Previous Version', 'wdesignkit'),
51 52 'description' => __(
52 53 'Downgrades the WDesignKit plugin to a specified previous stable version using the WordPress Plugin Upgrader. The plugin is automatically re-activated after installation. This replaces the current plugin files and cannot be undone without a further rollback or update. Requires confirm: true.',
53 - 'sprout-mcp',
54 + 'wdesignkit',
54 55 ),
55 56 'category' => 'wdesignkit',
56 57 'input_schema' => [
57 58 'type' => 'object',
@@ -78,12 +79,17 @@
78 79 'warning' => ['type' => ['string', 'null']],
79 80 ],
80 81 ],
81 82 'execute_callback' => 'wdesignkit_mcp_rollback',
82 - 'permission_callback' => 'sprout_mcp_permission_callback',
83 + 'permission_callback' => 'wdesignkit_mcp_permission_callback',
83 84 'meta' => [
85 + // Replaces the plugin's files on disk — the same operation as a plugin update, so it
86 + // requires update_plugins on top of the shared manage_options gate. Enforced via
87 + // wp_ability_permission_result (WP 7.1+); see class-wdk-ability-lifecycle.php.
88 + 'required_capability' => 'update_plugins',
89 + 'public' => false,
84 90 'show_in_rest' => true,
85 - 'mcp' => ['public' => true],
91 + 'mcp' => ['public' => false],
86 92 'annotations' => [
87 93 'instructions' => implode("\n", [
88 94 'Rolls back WDesignKit to a previous version. Destructive — replaces plugin files.',
89 95 'Always call wdesignkit/list-rollback-versions first to validate the version string.',