[wp-trac] [WordPress Trac] #54411: Media Library modal - multiple Select Files buttons when switching between Media Library and Upload Files tabs
WordPress Trac
noreply at wordpress.org
Wed Nov 10 20:38:48 UTC 2021
#54411: Media Library modal - multiple Select Files buttons when switching between
Media Library and Upload Files tabs
--------------------------+------------------------
Reporter: talldanwp | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.9
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------
Comment (by joedolson):
Because the passed browse button is now a container `div` rather than a
single element, we're getting a mismatch between states - the div contains
whitespace. (It also had style attributes added by moxie, but while that
causes a failure, it's easy to work around.)
Fixed this by changing the check to verify that the placeholder has
content; if it does, then the replacement has already happened.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54411#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list