PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
← 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 */