Changeset 47219 for trunk/src/wp-includes/category.php
- Timestamp:
- 02/09/2020 04:52:28 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/category.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category.php
r47122 r47219 128 128 $full_path = ''; 129 129 foreach ( (array) $category_paths as $pathdir ) { 130 $full_path .= ( $pathdir != ''? '/' : '' ) . sanitize_title( $pathdir );130 $full_path .= ( '' != $pathdir ? '/' : '' ) . sanitize_title( $pathdir ); 131 131 } 132 132 $categories = get_terms( … … 145 145 $path = '/' . $leaf_path; 146 146 $curcategory = $category; 147 while ( ( $curcategory->parent != 0) && ( $curcategory->parent != $curcategory->term_id ) ) {147 while ( ( 0 != $curcategory->parent ) && ( $curcategory->parent != $curcategory->term_id ) ) { 148 148 $curcategory = get_term( $curcategory->parent, 'category' ); 149 149 if ( is_wp_error( $curcategory ) ) {
Note: See TracChangeset
for help on using the changeset viewer.