diff --git a/projects/packages/forms/changelog/remove-forms-boot-importmap-workaround b/projects/packages/forms/changelog/remove-forms-boot-importmap-workaround new file mode 100644 index 000000000000..12df80d4898c --- /dev/null +++ b/projects/packages/forms/changelog/remove-forms-boot-importmap-workaround @@ -0,0 +1,4 @@ +Significance: patch +Type: removed + +Dashboard: Remove redundant workaround for a dashboard loading edge case now fixed in bundled dependencies. No functional change. diff --git a/projects/packages/forms/src/dashboard/class-dashboard.php b/projects/packages/forms/src/dashboard/class-dashboard.php index 37dcdc905b48..4be6a5fcbe27 100644 --- a/projects/packages/forms/src/dashboard/class-dashboard.php +++ b/projects/packages/forms/src/dashboard/class-dashboard.php @@ -77,66 +77,6 @@ public static function load_wp_build() { ); } - /** - * Fix import map ordering for the wp-build boot script. - * - * In wp-admin, _wp_footer_scripts (classic scripts) and print_import_map - * both hook into admin_print_footer_scripts at priority 10, but - * _wp_footer_scripts is registered first. This causes the inline - * import("@wordpress/boot") to execute before the import map exists. - * - * This fix moves the import() call from the classic inline script to a - *