← All changes
|
includes/abilities/settings/class-update-instant-indexing-settings.php
+8
-1
2.3.0
→
2.9.0
View file →
| @@ -52,9 +52,16 @@ | ||
| 52 | 52 | */ |
| 53 | 53 | public function get_annotations() { |
| 54 | 54 | return [ |
| 55 | 55 | 'readonly' => false, |
| 56 | - 'destructive' => true, | |
| 56 | + // Settings writes are recoverable: the matching get-* ability reads | |
| 57 | + // the previous value, so nothing is lost that cannot be put back. | |
| 58 | + // `destructive` is reserved for calls that lose data or reach | |
| 59 | + // outside the site, and marking routine configuration with it made | |
| 60 | + // MCP clients demand a human approval for every save — which users | |
| 61 | + // reported as a permission bug, because the client's refusal reads | |
| 62 | + // as "No approval received" (#675). | |
| 63 | + 'destructive' => false, | |
| 57 | 64 | 'idempotent' => true, |
| 58 | 65 | 'priority' => 2.0, |
| 59 | 66 | 'openWorldHint' => false, |
| 60 | 67 | ]; |