← All changes
|
jetpack_vendor/automattic/jetpack-premium-analytics/src/widget-availability.php
+5
-4
16.2
→
16.3-beta
View file →
| @@ -1,9 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Widget availability policy (consumer layer): hides developer-only, Simple-only, and | |
| 4 | - * plugin-gated widget types at registry time — a hard hide, so every consumer of the | |
| 5 | - * registry sees the same set, over the neutral hooks in widget-types.php. | |
| 3 | + * Widget availability policy (consumer layer): drops developer-only, platform-unsupported, | |
| 4 | + * plugin-gated and capability-gated candidates from a manifest at registry time, over the | |
| 5 | + * neutral hooks in widget-types.php. A dropped candidate never registers, so every reader sees | |
| 6 | + * the same set; a type registered one by one with register_widget_type() skips this policy. | |
| 6 | 7 | * |
| 7 | 8 | * @package automattic/jetpack-premium-analytics |
| 8 | 9 | */ |
| 9 | 10 | |
| @@ -135,9 +136,9 @@ | ||
| 135 | 136 | |
| 136 | 137 | /** |
| 137 | 138 | * Registry-time callback: hides commerce categories without their plugin, reading |
| 138 | 139 | * WooCommerce availability through the store section's signal so section and widgets |
| 139 | - * agree; both entry points load dashboard-sections.php before the registry hydrates. | |
| 140 | + * agree; both entry points load default-dashboard-sections.php before the registry hydrates. | |
| 140 | 141 | * |
| 141 | 142 | * @param array $widget_candidates Manifest candidates. |
| 142 | 143 | * @return array The candidates, minus commerce categories missing their plugin. |
| 143 | 144 | */ |