Changeset 47219 for trunk/src/wp-includes/class-wp-walker.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-walker.php
r47122 r47219 145 145 146 146 // Descend only when the depth is right and there are childrens for this element. 147 if ( ( $max_depth == 0|| $max_depth > $depth + 1 ) && isset( $children_elements[ $id ] ) ) {147 if ( ( 0 == $max_depth || $max_depth > $depth + 1 ) && isset( $children_elements[ $id ] ) ) { 148 148 149 149 foreach ( $children_elements[ $id ] as $child ) { … … 249 249 * then we got orphans, which should be displayed regardless. 250 250 */ 251 if ( ( $max_depth == 0) && count( $children_elements ) > 0 ) {251 if ( ( 0 == $max_depth ) && count( $children_elements ) > 0 ) { 252 252 $empty_array = array(); 253 253 foreach ( $children_elements as $orphans ) {
Note: See TracChangeset
for help on using the changeset viewer.