Making WordPress.org

Changeset 9166


Ignore:
Timestamp:
10/08/2019 05:55:16 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Handbook: Update WPorg_Handbook_Walker::walk() signature for compatibility with the upcoming WordPress core change in [WP46442], introducing the spread operator in Walker::walk().

Props jrf.
Fixes #4758. See #WP47678.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/walker.php

    r7758 r9166  
    2727     * @param array $elements  An array of elements.
    2828     * @param int   $max_depth The maximum hierarchical depth.
     29     * @param mixed ...$args   Optional additional arguments.
    2930     * @return string The hierarchical item output.
    3031     */
    31     public function walk( $elements, $max_depth ) {
    32         $args   = array_slice( func_get_args(), 2 );
     32    public function walk( $elements, $max_depth, ...$args ) {
    3333        $output = '';
    3434
Note: See TracChangeset for help on using the changeset viewer.