Changeset 47863 for trunk/src/wp-includes/category.php
- Timestamp:
- 05/29/2020 10:00:32 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category.php
r47808 r47863 176 176 * 177 177 * @param string $slug The category slug. 178 * @return object Category data object178 * @return object|false Category data object on success, false if not found. 179 179 */ 180 180 function get_category_by_slug( $slug ) { 181 181 $category = get_term_by( 'slug', $slug, 'category' ); 182 182 183 if ( $category ) { 183 184 _make_cat_compat( $category );
Note: See TracChangeset
for help on using the changeset viewer.