Opened 4 years ago
Last modified 4 years ago
#45694 reviewing defect (bug)
Undefined Index: caption_id
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 5.0.1 |
Component: | Media | Keywords: | has-patch reporter-feedback |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
@Soben: Do you have more information about how to reproduce this?
$atts['caption_id']
should at least be set to an empty string byshortcode_atts()
.