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

WordPress Trac noreply at wordpress.org
Thu May 2 20:27:25 UTC 2024


#45694: Undefined Index: caption_id
-----------------------------------------+-----------------------------
 Reporter:  Soben                        |       Owner:  SergeyBiryukov
     Type:  defect (bug)                 |      Status:  closed
 Priority:  normal                       |   Milestone:
Component:  Media                        |     Version:  5.0.1
 Severity:  normal                       |  Resolution:  invalid
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => invalid
 * milestone:  Future Release =>


Comment:

 I'm not understanding how a PHP Notice is generated for a missing
 `'caption_id'` key within the `$atts`. By default, that key gets set with
 a default value through `shortcode_atts()`. If the key exists in the
 incoming `$attr`, then the incoming value is retained. But in both cases,
 the key is set.

 I'm also not able to reproduce the issue. Without more information such as
 step-by-step instructions, currently the ticket is not actionable.

 Given it's been 5 years with no follow-up, I'll assume the issue was
 resolved. Closing the ticket.

 Hello @Soben,

 Does this issue still happen for you today?
 * If no, woohoo!
 * If yes, please reopen this ticket and provide instructions on how to
 reproduce. This helps contributors diagnose. Thanks.

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


More information about the wp-trac mailing list