[wp-trac] [WordPress Trac] #18009: term_exists uses is_int so '0' does not equal 0 and so wp_set_object_terms will create 0

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 6 18:32:02 UTC 2011


#18009: term_exists uses is_int so '0' does not equal 0 and so wp_set_object_terms
will create 0
--------------------------+------------------------------
 Reporter:  agalindo      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by agalindo):

 Replying to [comment:1 nacin]:
 > That's actually proper behavior. The term API makes a distinct
 difference between a numeric string, treating it as a slug, and an
 integer, which it treats as an ID.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18009#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list