Changeset 12497
- Timestamp:
- 11/13/2019 02:25:01 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-walker-nav-menu.php
r11363 r12497 48 48 * 49 49 * @since 1.7.0 50 * 50 * @since 6.0.0 Formalized the existing `...$args` parameter by adding it 51 * to the function signature to match WordPress 5.3. 51 52 * @see Walker::walk() 52 53 * 53 54 * @param array $elements See {@link Walker::walk()}. 54 55 * @param int $max_depth See {@link Walker::walk()}. 56 * @param mixed ...$args Optional additional arguments. 55 57 * @return string See {@link Walker::walk()}. 56 58 */ 57 public function walk( $elements, $max_depth ) { 58 $args = array_slice( func_get_args(), 2 ); 59 public function walk( $elements, $max_depth, ...$args ) { 59 60 $output = ''; 60 61
Note: See TracChangeset
for help on using the changeset viewer.