[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:28:29 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 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:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list