Make WordPress Core


Ignore:
Timestamp:
04/15/2007 02:26:26 AM (18 years ago)
Author:
ryan
Message:

tag_exists(), category_object_exists(), and some tag and cat create fix ups. see #3723

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r5248 r5271  
    809809        if ( !$tag_slug = sanitize_title( $tag ) )
    810810            continue; // discard
    811         if ( !$tag_id = category_exists( $tag ) )
     811        if ( !$tag_id = tag_exists( $tag ) )
    812812            $tag_id = wp_create_tag( $tag );
    813813        $tag_ids[] = $tag_id;
Note: See TracChangeset for help on using the changeset viewer.