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

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 21 17:49:41 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 has-patch  |
------------------------------------+-----------------------
Changes (by arena):

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


Comment:

 I re open this ticket because

 * the code such as in post.php

 {{{
 $dir = array_shift($keys = array_keys($dirs));
 }}}

 still gives a E_STRICT PHP error
 PHP [E_STRICT] 2048 : Only variables should be passed by reference in
 D:\webserver\htdocs\wordpress\wp-admin\includes\menu.php at line 218

 * same for following code

 {{{
 $last_menu_key = array_pop( $last_menu_key = array_keys( $menu ) );
 }}}

 PHP [E_STRICT] 2048 : Only variables should be passed by reference in
 D:\webserver\htdocs\wordpress\wp-includes\post.php at line 4036

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


More information about the wp-trac mailing list