[wp-trac] [WordPress Trac] #29467: is_object_in_term() return true If the term name begins with a number

WordPress Trac noreply at wordpress.org
Mon Nov 3 14:24:24 UTC 2014


#29467: is_object_in_term() return true If the term name begins with a number
--------------------------+---------------------------
 Reporter:  nobinobi      |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1
Component:  Taxonomy      |     Version:  2.7
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30205"]:
 {{{
 #!CommitTicketReference repository="" revision="30205"
 In `in_object_in_term()`, only check numeric string values against
 term_id.

 The previous `in_array()` check was playing too loose with mixed types,
 such
 that a string like '10_term_name' would incorrectly match a term_id 10.

 Props nobinobi, realloc.
 Fixes #29467.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29467#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list