[wp-trac] [WordPress Trac] #53540: Use $image[0] instead of $image['0'] in media file
WordPress Trac
noreply at wordpress.org
Mon Jun 28 12:21:45 UTC 2021
#53540: Use $image[0] instead of $image['0'] in media file
--------------------------+-----------------------------
Reporter: chintan1896 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
I think we need to use {{{ $image[0]}}} instead of {{{ $image['0'] }}} in
media file.
When called for srcset that time we have used {{{ $image[0]}}} Please
check here. [https://github.com/WordPress/WordPress/blob/master/wp-
includes/media.php#L1218]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53540>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list