← All changes
|
includes/abilities/settings/class-update-robots-meta-settings.php
+8
-1
2.1.1
→
2.8.0
View file →
| @@ -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 | ]; |