← All changes
|
includes/abilities/settings/class-update-social-platforms-settings.php
+9
-2
2.0.0
→
2.9.0
View file →
| @@ -50,9 +50,9 @@ | ||
| 50 | 50 | */ |
| 51 | 51 | public function __construct() { |
| 52 | 52 | $this->id = 'thinkrank/update-social-platforms-settings'; |
| 53 | 53 | $this->label = __( 'Update ThinkRank Social Platform Settings', 'thinkrank' ); |
| 54 | - $this->description = __( 'Update ThinkRank social platform verification settings: public platform IDs (Facebook, YouTube, WhatsApp) and sensitive site-verification codes (Pinterest, Instagram, TikTok). Only non-empty provided keys are saved; sensitive codes are stored encrypted.', 'thinkrank' ); | |
| 54 | + $this->description = __( 'Update ThinkRank social platform verification settings: public platform IDs (Facebook, YouTube, WhatsApp) and sensitive site-verification codes (Pinterest, Instagram, TikTok). Only non-empty provided keys are saved; sensitive codes are stored encrypted. Read the current values with get-social-platforms-settings first.', 'thinkrank' ); | |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * {@inheritDoc} |
| @@ -61,9 +61,16 @@ | ||
| 61 | 61 | */ |
| 62 | 62 | public function get_annotations() { |
| 63 | 63 | return [ |
| 64 | 64 | 'readonly' => false, |
| 65 | - 'destructive' => true, | |
| 65 | + // Settings writes are recoverable: the matching get-* ability reads | |
| 66 | + // the previous value, so nothing is lost that cannot be put back. | |
| 67 | + // `destructive` is reserved for calls that lose data or reach | |
| 68 | + // outside the site, and marking routine configuration with it made | |
| 69 | + // MCP clients demand a human approval for every save — which users | |
| 70 | + // reported as a permission bug, because the client's refusal reads | |
| 71 | + // as "No approval received" (#675). | |
| 72 | + 'destructive' => false, | |
| 66 | 73 | 'idempotent' => true, |
| 67 | 74 | 'priority' => 2.0, |
| 68 | 75 | 'openWorldHint' => false, |
| 69 | 76 | ]; |