[wp-trac] [WordPress Trac] #53540: Use $image[0] instead of $image['0'] in media file

WordPress Trac noreply at wordpress.org
Thu Nov 25 08:34:17 UTC 2021


#53540: Use $image[0] instead of $image['0'] in media file
--------------------------------------+-----------------------
 Reporter:  chintan1896               |       Owner:  audrasjb
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.9
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch good-first-bug  |     Focuses:
--------------------------------------+-----------------------
Changes (by audrasjb):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52245" 52245]:
 {{{
 #!CommitTicketReference repository="" revision="52245"
 Media: Replace some array keys with their numeric equivalent.

 This change replaces `['0']` with `[0]` which brings better consistency,
 readability and performance.

 Props chintan1896, adamsilverstein, costdev.
 Fixes #53540.
 }}}

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


More information about the wp-trac mailing list