[wp-trac] [WordPress Trac] #45333: term_exists might fail if slugs are changed

WordPress Trac noreply at wordpress.org
Tue Nov 13 16:15:42 UTC 2018


#45333: term_exists might fail if slugs are changed
--------------------------+------------------------------
 Reporter:  leogermani    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by leogermani):

 Just realized that `get_term_by()` is not a good replacement for
 `term_exists()` because it does not expect term parent as a parameter...

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


More information about the wp-trac mailing list