Changeset 50699
- Timestamp:
- 04/11/2021 01:42:25 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/export.php
r50011 r50699 170 170 // Put categories in order with no child going before its parent. 171 171 while ( $cat = array_shift( $categories ) ) { 172 if ( 0 ==$cat->parent || isset( $cats[ $cat->parent ] ) ) {172 if ( ! $cat->parent || isset( $cats[ $cat->parent ] ) ) { 173 173 $cats[ $cat->term_id ] = $cat; 174 174 } else { … … 179 179 // Put terms in order with no child going before its parent. 180 180 while ( $t = array_shift( $custom_terms ) ) { 181 if ( 0 ==$t->parent || isset( $terms[ $t->parent ] ) ) {181 if ( ! $t->parent || isset( $terms[ $t->parent ] ) ) { 182 182 $terms[ $t->term_id ] = $t; 183 183 } else {
Note: See TracChangeset
for help on using the changeset viewer.