Opened 2 weeks ago
Last modified 13 days ago
#49655 new defect (bug)
Correct the image thumbnail logic in media templates
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch |
Focuses: | administration | Cc: |
Description
Two media templates appear to contain incorrect logic when checking if properties exist before displaying them:
data.image
is checked butdata.thumb
is used: https://core.trac.wordpress.org/browser/tags/5.3.2/src/wp-includes/media.php?marks=2040-2042#L2031data.sizes
is checked butdata.size
is used: https://core.trac.wordpress.org/browser/tags/5.3.2/src/wp-includes/media-template.php?marks=536-539#L529
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Introduced in [27239], [29528].