[wp-trac] [WordPress Trac] #18975: [E_STRICT] menu.php at line 218

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 28 17:09:29 UTC 2011

#18975: [E_STRICT] menu.php at line 218
 Reporter:  arena                     |       Owner:
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  3.3
Component:  Menus                     |     Version:  3.3
 Severity:  normal                    |  Resolution:
 Keywords:  dev-feedback needs-patch  |

Comment (by nacin):

 IIRC, reset() and end() don't work as you might expect, depending on the
 order items were added to the array. ryan seems to recall the same thing
 but we could both be off. end(), key(), and reset() all require references
 like array_shift() and array_pop(), so they don't eliminate the
 requirement for the variable. I'd love to see a patch that changes our
 understanding here.

Ticket URL: <http://core.trac.wordpress.org/ticket/18975#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list