[wp-trac] [WordPress Trac] #62606: Dismiss Button in Media Upload Error Message Not Working
WordPress Trac
noreply at wordpress.org
Fri Dec 20 18:00:25 UTC 2024
#62606: Dismiss Button in Media Upload Error Message Not Working
-------------------------------------------------+-------------------------
Reporter: sukhendu2002 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.8
Component: Media | Version: 6.4
Severity: normal | Resolution:
Keywords: has-screenshots has-patch has- | Focuses: javascript
testing-info |
-------------------------------------------------+-------------------------
Comment (by sabernhardt):
The async upload already escapes the filename and error message, so it
could switch to `echo wp_get_admin_notice()`. It would not need the action
or further sanitization in `wp_admin_notice()`.
I was not successful at making the notice consistent with other
dismissible notices (comment:3), but if someone else can, that could be an
improvement to replace the `onclick` attribute.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62606#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list