[wp-trac] [WordPress Trac] #31259: Replace array_shift() with current() where appropriate
WordPress Trac
noreply at wordpress.org
Sun Mar 8 02:20:25 UTC 2015
#31259: Replace array_shift() with current() where appropriate
-------------------------------------+--------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: performance
-------------------------------------+--------------------------
Comment (by nacin):
Strongly agree on not depending on the pointer being the first item.
This is definitely not the first time we've converted array modification
functions to `reset()` and such. They sneak in over time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31259#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list