[wp-trac] [WordPress Trac] #48710: 5.3 version - empty alt attribute

WordPress Trac noreply at wordpress.org
Mon Nov 18 22:11:24 UTC 2019


#48710: 5.3 version - empty alt attribute
--------------------------+------------------------------
 Reporter:  worddean      |       Owner:  audrasjb
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility
--------------------------+------------------------------
Changes (by afercia):

 * version:  5.3 =>


Comment:

 Seems to me after a page refresh (or navigating away and re-editing the
 post) there are also a couple PHP notices related to undefined index
 `$image_meta['file']`:
 {{{

 Notice: Undefined index: file in /srv/www/wordpress-
 develop/public_html/build/wp-includes/media.php
 }}}

 on line 1535 and 1551. I can reproduce on 5.2 as well (haven't tested
 previous versions but it's probably there since 5.0?).

 To start with, the media views shouldn't allow to select a PDF from the
 Image block, thus the attachment type should be filtered in the media
 modal.

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


More information about the wp-trac mailing list