[buddypress-trac] [BuddyPress Trac] #8163: WP 5.3 use of the spread operator, our PHP required version (5.3) & BP_Walker_Nav_Menu

buddypress-trac noreply at wordpress.org
Fri Nov 29 03:47:00 UTC 2019


#8163: WP 5.3 use of the spread operator, our PHP required version (5.3) &
BP_Walker_Nav_Menu
-----------------------------------+---------------------
 Reporter:  imath                  |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  high                   |   Milestone:  5.1.0
Component:  Core                   |     Version:  1.7
 Severity:  major                  |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+---------------------

Comment (by imath):

 In [changeset:"12498" 12498]:
 {{{
 #!CommitTicketReference repository="" revision="12498"
 Compat classes to handle `Walker_Nav_Menu::walk()` changes in WP 5.3

 WordPress 5.3 modified the `Walker_Nav_Menu::walk()` signature adding a
 third parameter to the method that is using the spread operator.
 johnjamesjacoby quickly fixed the issue in [12497] when PHP >=5.6.

 As our current PHP required version is 5.3, we need to provide a temporary
 compatibility mechanism to make sure our `BP_Walker_Nav_Menu` will not
 generate errors when the PHP version is lower than 5.6 before raising the
 PHP required version in our next major release.

 props timothybjacobs, boonebgorges, imath

 See #8163 (Trunk)
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8163#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list