Changeset 25119
- Timestamp:
- 08/24/2013 10:53:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r24490 r25119 226 226 * 227 227 * @since 1.2.0 228 * @uses has_category() 228 229 * 229 230 * @param int|string|array $category Category ID, name or slug, or array of said. … … 232 233 */ 233 234 function in_category( $category, $post = null ) { 234 if ( empty( $category ) ) 235 return false; 236 237 return has_term( $category, 'category', $post ); 235 return has_category( $category, $post ); 238 236 } 239 237
Note: See TracChangeset
for help on using the changeset viewer.