Changeset 58863 for branches/6.6/src/wp-includes/class-wp-walker.php
- Timestamp:
- 08/07/2024 07:45:55 PM (11 months ago)
- Location:
- branches/6.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.6
-
branches/6.6/src/wp-includes/class-wp-walker.php
r57848 r58863 136 136 } 137 137 138 $max_depth = (int) $max_depth; 139 $depth = (int) $depth; 140 138 141 $id_field = $this->db_fields['id']; 139 142 $id = $element->$id_field; … … 191 194 public function walk( $elements, $max_depth, ...$args ) { 192 195 $output = ''; 196 197 $max_depth = (int) $max_depth; 193 198 194 199 // Invalid parameter or nothing to walk. … … 286 291 */ 287 292 public function paged_walk( $elements, $max_depth, $page_num, $per_page, ...$args ) { 293 $output = ''; 294 295 $max_depth = (int) $max_depth; 296 288 297 if ( empty( $elements ) || $max_depth < -1 ) { 289 return ''; 290 } 291 292 $output = ''; 298 return $output; 299 } 293 300 294 301 $parent_field = $this->db_fields['parent'];
Note: See TracChangeset
for help on using the changeset viewer.