From 0beea1c2aa169d04a5b27f5518abf0e41dd0bc9c Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Fri, 17 Oct 2025 20:47:45 +0800 Subject: [PATCH] Add the wp_script_module_attributes filter, with a supporting test. --- src/wp-includes/class-wp-script-modules.php | 16 +++++++++ .../tests/script-modules/wpScriptModules.php | 34 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/src/wp-includes/class-wp-script-modules.php b/src/wp-includes/class-wp-script-modules.php index 932fa984db018..8e907514634cb 100644 --- a/src/wp-includes/class-wp-script-modules.php +++ b/src/wp-includes/class-wp-script-modules.php @@ -1,4 +1,5 @@ ` tag attributes. + * Only the attribute name is added to the `