← All changes
|
includes/abilities/settings/class-update-instant-indexing-settings.php
+9
-2
2.0.2
→
2.10.0
View file →
| @@ -41,9 +41,9 @@ | ||
| 41 | 41 | */ |
| 42 | 42 | public function __construct() { |
| 43 | 43 | $this->id = 'thinkrank/update-instant-indexing-settings'; |
| 44 | 44 | $this->label = __( 'Update ThinkRank Instant Indexing Settings', 'thinkrank' ); |
| 45 | - $this->description = __( 'Update ThinkRank instant indexing (IndexNow) settings: the enabled flag and the auto-submit post types. The API key is auto-generated and cannot be set here.', 'thinkrank' ); | |
| 45 | + $this->description = __( 'Update ThinkRank instant indexing (IndexNow) settings: the enabled flag and the auto-submit post types. The API key is auto-generated and cannot be set here. Read the current values with get-instant-indexing-settings first.', 'thinkrank' ); | |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * {@inheritDoc} |
| @@ -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 | ]; |