Make WordPress Core


Ignore:
Timestamp:
06/02/2007 02:53:09 AM (17 years ago)
Author:
ryan
Message:

Separate AJAX cat adder into post and link flavors. see #4189

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/taxonomy.php

    r5566 r5637  
    66
    77function 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;
    912}
    1013
Note: See TracChangeset for help on using the changeset viewer.