[wp-trac] [WordPress Trac] #24587: Walker_Page and Walker_Nav_Menu not compatible

WordPress Trac noreply at wordpress.org
Mon Aug 22 23:21:05 UTC 2016


#24587: Walker_Page and Walker_Nav_Menu not compatible
------------------------------------------+-----------------------------
 Reporter:  geardev                       |       Owner:  johnbillion
     Type:  defect (bug)                  |      Status:  accepted
 Priority:  normal                        |   Milestone:  Future Release
Component:  Menus                         |     Version:  3.0
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by peterwilsoncc):

 What a mess!

 Is converting `wp_parse_args()` to return an object implementing
 `ArrayAccess` viable as a backward compatible solution? A generic utility
 class for the purpose would be the most useful solution.

 Massive con: If I recall correctly, `is_array()` returns `false` for
 `ArrayAccess` objects.

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


More information about the wp-trac mailing list