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