Changeset 42371 for branches/4.9
- Timestamp:
- 12/04/2017 09:59:33 PM (8 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
- 1 copied
-
. (modified) (1 prop)
-
src/wp-includes/category-template.php (modified) (1 diff)
-
tests/phpunit/tests/category/getTheCategoryById.php (copied) (copied from trunk/tests/phpunit/tests/category/getTheCategoryById.php)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/category-template.php
r42370 r42371 105 105 function get_the_category_by_ID( $cat_ID ) { 106 106 $cat_ID = (int) $cat_ID; 107 $category = get_term( $cat_ID , 'category');107 $category = get_term( $cat_ID ); 108 108 109 109 if ( is_wp_error( $category ) )
Note: See TracChangeset
for help on using the changeset viewer.