[wp-trac] [WordPress Trac] #62447: WP 6.7 Block Editor converting new PNG uploads to JPEG with mangled backgrounds
WordPress Trac
noreply at wordpress.org
Sat Nov 16 16:16:24 UTC 2024
#62447: WP 6.7 Block Editor converting new PNG uploads to JPEG with mangled
backgrounds
-------------------------------+------------------------------
Reporter: room34 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.7
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by room34):
Maybe I need to open a separate ticket for this, but as I was digging
through the WP 6.7 code for anything HEIC related, I came across something
that looks like a coding error — a misnamed variable.
In the file **wp-includes/media.php**, in the
`wp_show_heic_upload_error()` function, at line 5612 in the file, a value
is being set for a node in the `$plupload_init` array. However the
variable being passed in, and returned by the function, is
`$plupload_settings`. The variable `$plupload_init` is not a global and is
not defined in the function. So in other words, I don't think this
function as it's currently written is capable of doing anything. Probably
doesn't have anything to do with the issue I'm seeing in Safari, but it
definitely should be looked at by someone who knows the code base better
than I do.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62447#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list