Merged
Conversation
e9a1217 to
72f7574
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #60 +/- ##
============================================
- Coverage 88.27% 87.55% -0.72%
- Complexity 282 293 +11
============================================
Files 21 26 +5
Lines 827 860 +33
============================================
+ Hits 730 753 +23
- Misses 97 107 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
72f7574 to
72b886f
Compare
c9a20ff to
87051a3
Compare
87051a3 to
a62ba2f
Compare
Chrico
approved these changes
Sep 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please check if the PR fulfills these requirements
Summary
This PR adds support for Script Modules introduced in WordPress 6.5.
Relevant documentation and discussions, in chronological order:
Changes
Script Module Support
ScriptModuleclassScriptModuleHandlerwith compatibility checksAssetFactoryRefactoring
Assetinterface into core functionality onlyDataAwareAssetinterface for data-related methods (data(),withCondition())FilterAwareAssetinterface for filter/attributes methods (filters(),withFilters(),attributes(),withAttributes())DataAwareTrait,FilterAwareTraitandDependencyExtractionTraitfor DRY implementationScriptimplementsAsset,DataAwareAsset,FilterAwareAssetStyleimplementsAsset,DataAwareAsset,FilterAwareAssetScriptModuleimplements only coreAssetinterfaceLimitations
Due to WordPress core limitations, ScriptModule does NOT support:
script_loader_tagfilter for Script Modules)Next Steps
script_module_data_{$module_id}filter for data passing.