-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import Maps: Only emit CDATA wrappers for inline scripts for JavaScript #58818
Import Maps: Only emit CDATA wrappers for inline scripts for JavaScript #58818
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/compat/wordpress-6.5/class-wp-script-modules.php ❔ lib/compat/wordpress-6.5/script-loader.php |
@@ -107,3 +107,109 @@ static function ( $settings ) { | |||
return $settings; | |||
} | |||
); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be in the 6.5 folder though? This fix is not on 6.4 right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true. I mislead with being compatible with 6.4 versions.
9dc0bdd
to
467c624
Compare
467c624
to
c4b48b6
Compare
…pt (#58818) * Add fix from Core Trunk to Gutenberg * Move to 6.5 compat folder Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
…pt (#58818) * Add fix from Core Trunk to Gutenberg * Move to 6.5 compat folder Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
…pt (#58818) * Add fix from Core Trunk to Gutenberg * Move to 6.5 compat folder Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
* Import Maps: Only emit CDATA wrappers for inline scripts for JavaScript (#58818) * Add fix from Core Trunk to Gutenberg * Move to 6.5 compat folder Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> * Revert "Import Maps: Only emit CDATA wrappers for inline scripts for JavaScript (#58818)" This reverts commit 2a16bdd. * Import Maps: Only emit CDATA wrappers for inline scripts for JavaScript (#58818) * Add fix from Core Trunk to Gutenberg * Move to 6.5 compat folder Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> * Revert "Import Maps: Only emit CDATA wrappers for inline scripts for JavaScript (#58818)" This reverts commit 4b65571. * Import Maps: Only emit CDATA wrappers for inline scripts for JavaScript (#58818) * Add fix from Core Trunk to Gutenberg * Move to 6.5 compat folder Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> * Load scrip-loader file, was not in the cherry-pick * Revert "Import Maps: Only emit CDATA wrappers for inline scripts for JavaScript (#58818)" This reverts commit 2031222. * Revert "Load scrip-loader file, was not in the cherry-pick" This reverts commit 94237e0. * Fix cdata crashing modules in not html5 compatible themes --------- Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
What?
I'm backporting this fix for WordPress 6.4. So that sites with WP < 6.5 and Gutenberg, and old classic themes that does not support html5.
WordPress/wordpress-develop#5925
Testing Instructions
trunk
, it should work in this PR.