PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.10
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.10
1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 0.8.8 0.8.7 All 34 releases
← All changes | includes/registries/widgets.php +7 -0 1.1.31.1.10 View file →
@@ -216,8 +216,15 @@
216 216 'maxHeight' => $entry['max_height'],
217 217 'defaultWidth' => $entry['default_width'],
218 218 'defaultHeight' => $entry['default_height'],
219 219 'scriptUrl' => $script_payload['url'],
220 + // The packages this widget declares, in load order.
221 + // WordPress resolves a script's dependencies when it
222 + // enqueues it; a widget bundle is delivered lazily and
223 + // never goes through that, so a widget declaring
224 + // `wp-api-fetch` found `wp.apiFetch` undefined at mount.
225 + // See docs/migration-wp-package-globals.md.
226 + 'scriptDeps' => openstation_resolve_script_dependencies( $entry['script'] ),
220 227 'scriptHandle' => $entry['script'],
221 228 'scriptBefore' => $script_payload['before'],
222 229 'scriptAfter' => $script_payload['after'],
223 230 'scriptL10n' => $script_payload['l10n'],