← All changes
|
includes/abilities/settings/class-update-schema-settings.php
+9
-1
2.5.0
→
2.14.0
View file →
| @@ -36,8 +36,9 @@ | ||
| 36 | 36 | 'knowledge_graph', |
| 37 | 37 | 'website_enable_search', |
| 38 | 38 | 'enable_breadcrumbs_schema', |
| 39 | 39 | 'enable_local_business', |
| 40 | + 'enable_accordion_faq_schema', | |
| 40 | 41 | ]; |
| 41 | 42 | |
| 42 | 43 | /** |
| 43 | 44 | * Integer-typed schema keys. |
| @@ -114,9 +115,16 @@ | ||
| 114 | 115 | */ |
| 115 | 116 | public function get_annotations() { |
| 116 | 117 | return [ |
| 117 | 118 | 'readonly' => false, |
| 118 | - 'destructive' => true, | |
| 119 | + // Settings writes are recoverable: the matching get-* ability reads | |
| 120 | + // the previous value, so nothing is lost that cannot be put back. | |
| 121 | + // `destructive` is reserved for calls that lose data or reach | |
| 122 | + // outside the site, and marking routine configuration with it made | |
| 123 | + // MCP clients demand a human approval for every save — which users | |
| 124 | + // reported as a permission bug, because the client's refusal reads | |
| 125 | + // as "No approval received" (#675). | |
| 126 | + 'destructive' => false, | |
| 119 | 127 | 'idempotent' => true, |
| 120 | 128 | 'priority' => 2.0, |
| 121 | 129 | 'openWorldHint' => false, |
| 122 | 130 | ]; |