Changeset 45624 for trunk/src/wp-includes/class-wp-walker.php
- Timestamp:
- 07/11/2019 11:50:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-walker.php
r42343 r45624 185 185 * @param array $elements An array of elements. 186 186 * @param int $max_depth The maximum hierarchical depth. 187 * @param mixed ...$args Optional additional arguments. 187 188 * @return string The hierarchical item output. 188 189 */ 189 public function walk( $elements, $max_depth ) { 190 $args = array_slice( func_get_args(), 2 ); 190 public function walk( $elements, $max_depth, ...$args ) { 191 191 $output = ''; 192 192 … … 277 277 * @param array $elements 278 278 * @param int $max_depth The maximum hierarchical depth. 279 * @param int $page_num The specific page number, beginning with 1.279 * @param int $page_num The specific page number, beginning with 1. 280 280 * @param int $per_page 281 * @param mixed ...$args Optional additional arguments. 281 282 * @return string XHTML of the specified page of elements 282 283 */ 283 public function paged_walk( $elements, $max_depth, $page_num, $per_page ) {284 public function paged_walk( $elements, $max_depth, $page_num, $per_page, ...$args ) { 284 285 if ( empty( $elements ) || $max_depth < -1 ) { 285 286 return ''; 286 287 } 287 288 288 $args = array_slice( func_get_args(), 4 );289 289 $output = ''; 290 290
Note: See TracChangeset
for help on using the changeset viewer.