[wp-trac] [WordPress Trac] #31259: Replace array_shift() with current() where appropriate

WordPress Trac noreply at wordpress.org
Fri Mar 20 01:56:13 UTC 2015


#31259: Replace array_shift() with current() where appropriate
-------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov           |       Owner:  wonderboymusic
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.2
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:  performance
-------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"31841"]:
 {{{
 #!CommitTicketReference repository="" revision="31841"
 After [31730], replace one more instance of `array_shift()` with `reset()`
 for better performance.

 see #31259, #15459.
 }}}

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


More information about the wp-trac mailing list