Changeset 46442
- Timestamp:
- 10/08/2019 05:54:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-walker.php
r46143 r46442 181 181 * @param array $elements An array of elements. 182 182 * @param int $max_depth The maximum hierarchical depth. 183 * @param mixed ...$args Optional additional arguments. 183 184 * @return string The hierarchical item output. 184 185 */ 185 public function walk( $elements, $max_depth ) { 186 $args = array_slice( func_get_args(), 2 ); 186 public function walk( $elements, $max_depth, ...$args ) { 187 187 $output = ''; 188 188 … … 273 273 * @param array $elements 274 274 * @param int $max_depth The maximum hierarchical depth. 275 * @param int $page_num The specific page number, beginning with 1.275 * @param int $page_num The specific page number, beginning with 1. 276 276 * @param int $per_page 277 * @param mixed ...$args Optional additional arguments. 277 278 * @return string XHTML of the specified page of elements 278 279 */ 279 public function paged_walk( $elements, $max_depth, $page_num, $per_page ) {280 public function paged_walk( $elements, $max_depth, $page_num, $per_page, ...$args ) { 280 281 if ( empty( $elements ) || $max_depth < -1 ) { 281 282 return ''; 282 283 } 283 284 284 $args = array_slice( func_get_args(), 4 );285 285 $output = ''; 286 286
Note: See TracChangeset
for help on using the changeset viewer.