[wp-trac] [WordPress Trac] #43345: term_exists() may return 0 which is not a text-documented return type

WordPress Trac noreply at wordpress.org
Fri May 24 20:22:39 UTC 2019


#43345: term_exists() may return 0 which is not a text-documented return type
-------------------------------------+--------------------------
 Reporter:  dotancohen               |       Owner:  johnbillion
     Type:  defect (bug)             |      Status:  reviewing
 Priority:  normal                   |   Milestone:  5.3
Component:  Taxonomy                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------------

Comment (by johnbillion):

 Clarification: This condition was originally introduced to prevent a
 category with the name `0` being inserted when a post is saved with no
 categories selected (presumably due to the `<input type="hidden"
 name="post_category[]" value="0">` in the Categories meta box.

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


More information about the wp-trac mailing list