Changeset 47808 for trunk/src/wp-includes/category.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category.php
r47219 r47808 38 38 39 39 // Back compat. 40 if ( isset( $args['type'] ) && 'link' == $args['type'] ) {40 if ( isset( $args['type'] ) && 'link' === $args['type'] ) { 41 41 _deprecated_argument( 42 42 __FUNCTION__, … … 127 127 $category_paths = explode( '/', $category_paths ); 128 128 $full_path = ''; 129 129 130 foreach ( (array) $category_paths as $pathdir ) { 130 $full_path .= ( '' != $pathdir ? '/' : '' ) . sanitize_title( $pathdir ); 131 } 131 $full_path .= ( '' !== $pathdir ? '/' : '' ) . sanitize_title( $pathdir ); 132 } 133 132 134 $categories = get_terms( 133 135 array(
Note: See TracChangeset
for help on using the changeset viewer.