Make WordPress Core


Ignore:
Timestamp:
06/05/2007 05:08:27 AM (18 years ago)
Author:
ryan
Message:

First cut of link category management. Rough and ugly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r5637 r5654  
    135135        if ( !$slug = sanitize_title($cat_name) )
    136136            die('0');
    137         if ( !$cat_id = category_exists( $cat_name ) ) {
     137        if ( !$cat_id = is_term( $cat_name, 'link_category' ) ) {
    138138            $cat_id = wp_insert_term( $cat_name, 'link_category' );
    139139            $cat_id = $cat_id['term_id'];
Note: See TracChangeset for help on using the changeset viewer.