← All changes
|
includes/abilities/settings/class-update-social-meta-settings.php
+12
-1
2.3.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', |
| @@ -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 | ]; |