← All changes
|
includes/abilities/settings/class-update-social-meta-settings.php
+13
-2
2.1.0
→
2.9.0
View file →
| @@ -34,8 +34,12 @@ | ||
| 34 | 34 | 'enable_instagram', |
| 35 | 35 | 'enable_tiktok', |
| 36 | 36 | 'enable_youtube', |
| 37 | 37 | 'enable_whatsapp', |
| 38 | + 'og_multiple_images', | |
| 39 | + 'oembed_use_seo_title', | |
| 40 | + 'oembed_use_social_image', | |
| 41 | + 'oembed_remove_author', | |
| 38 | 42 | 'auto_generate_descriptions', |
| 39 | 43 | 'fallback_to_excerpt', |
| 40 | 44 | 'strip_html_tags', |
| 41 | 45 | 'image_optimization', |
| @@ -80,9 +84,9 @@ | ||
| 80 | 84 | */ |
| 81 | 85 | public function __construct() { |
| 82 | 86 | $this->id = 'thinkrank/update-social-meta-settings'; |
| 83 | 87 | $this->label = __( 'Update ThinkRank Social Meta Settings', 'thinkrank' ); |
| 84 | - $this->description = __( 'Update ThinkRank social meta settings, covering Open Graph, Twitter Cards, and per-network verification and handle configuration.', 'thinkrank' ); | |
| 88 | + $this->description = __( 'Update ThinkRank social meta settings, covering Open Graph, Twitter Cards, and per-network verification and handle configuration. Read the current values with get-social-meta-settings first; only the keys you pass are changed.', 'thinkrank' ); | |
| 85 | 89 | } |
| 86 | 90 | |
| 87 | 91 | /** |
| 88 | 92 | * {@inheritDoc} |
| @@ -91,9 +95,16 @@ | ||
| 91 | 95 | */ |
| 92 | 96 | public function get_annotations() { |
| 93 | 97 | return [ |
| 94 | 98 | 'readonly' => false, |
| 95 | - 'destructive' => true, | |
| 99 | + // Settings writes are recoverable: the matching get-* ability reads | |
| 100 | + // the previous value, so nothing is lost that cannot be put back. | |
| 101 | + // `destructive` is reserved for calls that lose data or reach | |
| 102 | + // outside the site, and marking routine configuration with it made | |
| 103 | + // MCP clients demand a human approval for every save — which users | |
| 104 | + // reported as a permission bug, because the client's refusal reads | |
| 105 | + // as "No approval received" (#675). | |
| 106 | + 'destructive' => false, | |
| 96 | 107 | 'idempotent' => true, |
| 97 | 108 | 'priority' => 2.0, |
| 98 | 109 | 'openWorldHint' => false, |
| 99 | 110 | ]; |