Changeset 5637 for trunk/wp-admin/includes/taxonomy.php
- Timestamp:
- 06/02/2007 02:53:09 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/taxonomy.php
r5566 r5637 6 6 7 7 function category_exists($cat_name) { 8 return is_term($cat_name, 'category'); 8 $id = is_term($cat_name, 'category'); 9 if ( is_array($id) ) 10 $id = $id['term_id']; 11 return $id; 9 12 } 10 13
Note: See TracChangeset
for help on using the changeset viewer.