[wp-trac] [WordPress Trac] #48710: PDF uploads are treated like images: empty alt attribute and PHP notices

WordPress Trac noreply at wordpress.org
Wed Jun 21 15:39:23 UTC 2023


#48710: PDF uploads are treated like images: empty alt attribute and PHP notices
--------------------------+----------------------------
 Reporter:  worddean      |       Owner:  joedolson
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.3
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  accessibility
--------------------------+----------------------------
Changes (by joedolson):

 * keywords:  needs-patch reporter-feedback => needs-patch


Comment:

 The root problem here is that the uploader needs to be able to define the
 `accept` attribute. When you add an image, the modal only shows images;
 but you can upload anything, and then you can insert that new item into
 the image.

 When the modal is limited to a class of media, the uploader should also be
 limited to that class of media.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48710#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list