[wp-trac] [WordPress Trac] #45694: Undefined Index: caption_id

WordPress Trac noreply at wordpress.org
Tue Dec 18 21:41:16 UTC 2018


#45694: Undefined Index: caption_id
--------------------------+-----------------------------
 Reporter:  Soben         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.0.1
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 Discovered this randomly on a local project.


 {{{
 Notice: Undefined index: caption_id in /var/www/html/wp-includes/media.php
 on line 1572
 }}}

 Discovered with PHP 7.2.10 and WordPress 5.0.1

 It's just a warning but one nonetheless.

 Attached will be the patch.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45694>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list