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