← All changes
|
includes/abilities/settings/class-update-llms-txt-settings.php
+9
-2
2.1.0
→
2.9.0
View file →
| @@ -56,9 +56,9 @@ | ||
| 56 | 56 | */ |
| 57 | 57 | public function __construct() { |
| 58 | 58 | $this->id = 'thinkrank/update-llms-txt-settings'; |
| 59 | 59 | $this->label = __( 'Update ThinkRank llms.txt Settings', 'thinkrank' ); |
| 60 | - $this->description = __( 'Update ThinkRank llms.txt settings, which describe the site to AI language models via the llms.txt file.', 'thinkrank' ); | |
| 60 | + $this->description = __( 'Update ThinkRank llms.txt settings, which describe the site to AI language models via the llms.txt file. Read the current values with get-llms-txt-settings first, then publish-llms-txt to write the file.', 'thinkrank' ); | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * {@inheritDoc} |
| @@ -67,9 +67,16 @@ | ||
| 67 | 67 | */ |
| 68 | 68 | public function get_annotations() { |
| 69 | 69 | return [ |
| 70 | 70 | 'readonly' => false, |
| 71 | - 'destructive' => true, | |
| 71 | + // Settings writes are recoverable: the matching get-* ability reads | |
| 72 | + // the previous value, so nothing is lost that cannot be put back. | |
| 73 | + // `destructive` is reserved for calls that lose data or reach | |
| 74 | + // outside the site, and marking routine configuration with it made | |
| 75 | + // MCP clients demand a human approval for every save — which users | |
| 76 | + // reported as a permission bug, because the client's refusal reads | |
| 77 | + // as "No approval received" (#675). | |
| 78 | + 'destructive' => false, | |
| 72 | 79 | 'idempotent' => true, |
| 73 | 80 | 'priority' => 2.0, |
| 74 | 81 | 'openWorldHint' => false, |
| 75 | 82 | ]; |