← All changes
|
includes/abilities/settings/class-update-robots-meta-settings.php
+9
-2
1.30.0
→
2.9.0
View file →
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | */ |
| 45 | 45 | public function __construct() { |
| 46 | 46 | $this->id = 'thinkrank/update-robots-meta-settings'; |
| 47 | 47 | $this->label = __( 'Update ThinkRank Robots Meta Settings', 'thinkrank' ); |
| 48 | - $this->description = __( 'Update ThinkRank site-wide default robots meta directives (index, noindex, nofollow, noarchive, noimageindex, nosnippet).', 'thinkrank' ); | |
| 48 | + $this->description = __( 'Update ThinkRank site-wide default robots meta directives (index, noindex, nofollow, noarchive, noimageindex, nosnippet). Read the current values with get-robots-meta-settings first.', 'thinkrank' ); | |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * {@inheritDoc} |
| @@ -55,9 +55,16 @@ | ||
| 55 | 55 | */ |
| 56 | 56 | public function get_annotations() { |
| 57 | 57 | return [ |
| 58 | 58 | 'readonly' => false, |
| 59 | - 'destructive' => true, | |
| 59 | + // Settings writes are recoverable: the matching get-* ability reads | |
| 60 | + // the previous value, so nothing is lost that cannot be put back. | |
| 61 | + // `destructive` is reserved for calls that lose data or reach | |
| 62 | + // outside the site, and marking routine configuration with it made | |
| 63 | + // MCP clients demand a human approval for every save — which users | |
| 64 | + // reported as a permission bug, because the client's refusal reads | |
| 65 | + // as "No approval received" (#675). | |
| 66 | + 'destructive' => false, | |
| 60 | 67 | 'idempotent' => true, |
| 61 | 68 | 'priority' => 2.0, |
| 62 | 69 | 'openWorldHint' => false, |
| 63 | 70 | ]; |