Skip to content

Revert "Script Loader: Add sourceURL to inline scripts and styles."#9671

Closed
sirreal wants to merge 1 commit intoWordPress:trunkfrom
sirreal:revert-inline-script-sourceurl
Closed

Revert "Script Loader: Add sourceURL to inline scripts and styles."#9671
sirreal wants to merge 1 commit intoWordPress:trunkfrom
sirreal:revert-inline-script-sourceurl

Conversation

@sirreal
Copy link
Member

@sirreal sirreal commented Aug 29, 2025

Adding sourceURL seems to cause some issues with the customizer when SCRIPT_DEBUG is set to false.

Revert the changes to fix customizer issues.

Revert [60685].
Revert [60686].

Testing (via @t-hamano)

This seems to be the core issue: the Customizer widget editor doesn't launch when SCRIPT_DEBUG is false.

  • Set SCRIPT_DEBUG to false (Important)
  • Activate TT1 theme
  • Access Appearance > Customize > Widgets

The customizer should load without issues with this patch applied.

See WordPress/gutenberg#71374 (comment).

Trac ticket: https://core.trac.wordpress.org/ticket/63887


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@github-actions
Copy link

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 props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props jonsurrell.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@sirreal sirreal requested review from t-hamano and tyxla August 29, 2025 17:07
pento pushed a commit that referenced this pull request Aug 29, 2025
It was discovered that these changes cause some issues in the customizer when `SCRIPT_DEBUG` is `false`.

Reverts [60685] and [60686].

Developed in #9671

Props jonsurrell, wildworks, tyxla.
See #63887.


git-svn-id: https://develop.svn.wordpress.org/trunk@60690 602fd350-edb4-49c9-b593-d223f7449a82
@sirreal
Copy link
Member Author

sirreal commented Aug 29, 2025

Merged in [60690].

@sirreal sirreal closed this Aug 29, 2025
@sirreal sirreal deleted the revert-inline-script-sourceurl branch August 29, 2025 17:18
markjaquith pushed a commit to WordPress/WordPress that referenced this pull request Aug 29, 2025
It was discovered that these changes cause some issues in the customizer when `SCRIPT_DEBUG` is `false`.

Reverts [60685] and [60686].

Developed in WordPress/wordpress-develop#9671

Props jonsurrell, wildworks, tyxla.
See #63887.

Built from https://develop.svn.wordpress.org/trunk@60690


git-svn-id: http://core.svn.wordpress.org/trunk@60026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
@github-actions
Copy link

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

github-actions bot pushed a commit to platformsh/wordpress-performance that referenced this pull request Aug 29, 2025
It was discovered that these changes cause some issues in the customizer when `SCRIPT_DEBUG` is `false`.

Reverts [60685] and [60686].

Developed in WordPress/wordpress-develop#9671

Props jonsurrell, wildworks, tyxla.
See #63887.

Built from https://develop.svn.wordpress.org/trunk@60690


git-svn-id: https://core.svn.wordpress.org/trunk@60026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
@Mamaduka
Copy link
Member

Mamaduka commented Sep 1, 2025

Thanks for fixing this, @sirreal!

jonnynews pushed a commit to spacedmonkey/wordpress-develop that referenced this pull request Sep 24, 2025
It was discovered that these changes cause some issues in the customizer when `SCRIPT_DEBUG` is `false`.

Reverts [60685] and [60686].

Developed in WordPress#9671

Props jonsurrell, wildworks, tyxla.
See #63887.


git-svn-id: https://develop.svn.wordpress.org/trunk@60690 602fd350-edb4-49c9-b593-d223f7449a82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants