[wp-trac] [WordPress Trac] #61519: Unable to pick a featured image due to JS error
WordPress Trac
noreply at wordpress.org
Thu Jun 27 11:56:34 UTC 2024
#61519: Unable to pick a featured image due to JS error
--------------------------+---------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.6
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Changes (by alshakero):
* keywords: needs-patch =>
* component: Editor => General
Comment:
Thanks for the ticket! I investigated this last night and most probably it
stems from updating `uglify-js`
[https://core.trac.wordpress.org/changeset/58563#:~:text=uuid%22%3A%20%229.0.1%22%2C-,152,-%22uglify%2Djs%22%3A%20%22%5E3.1
here]. The source code of `media-models.js` hasn't changed in the past 4
years, yet the minified file is slightly logically different.
I suspect the output code is not logically equivalent to the source. To
see the minification issue, you can see the diff I created here. The left
side is the new minified code, the right side is the old (pre-change set)
minified code.
https://www.diffchecker.com/aeLriFRa/
There may be other minification issues that we missed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61519#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list