← All changes
|
includes/abilities/settings/class-update-robots-txt.php
+8
-1
2.6.0
→
2.8.0
View file →
| @@ -36,9 +36,16 @@ | ||
| 36 | 36 | */ |
| 37 | 37 | public function get_annotations() { |
| 38 | 38 | return [ |
| 39 | 39 | 'readonly' => false, |
| 40 | - 'destructive' => true, | |
| 40 | + // Settings writes are recoverable: the matching get-* ability reads | |
| 41 | + // the previous value, so nothing is lost that cannot be put back. | |
| 42 | + // `destructive` is reserved for calls that lose data or reach | |
| 43 | + // outside the site, and marking routine configuration with it made | |
| 44 | + // MCP clients demand a human approval for every save — which users | |
| 45 | + // reported as a permission bug, because the client's refusal reads | |
| 46 | + // as "No approval received" (#675). | |
| 47 | + 'destructive' => false, | |
| 41 | 48 | 'idempotent' => true, |
| 42 | 49 | 'priority' => 2.0, |
| 43 | 50 | 'openWorldHint' => false, |
| 44 | 51 | ]; |