[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 Jan 24 14:36:07 UTC 2020


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

Comment (by donmhico):

 As @johnbillion mentioned, I also think that making the `return 0` clear
 in the docs is good enough. There are quite a number of core's unit tests
 that asserts to `0` and there might be 3rd party plugins that are
 operating with the return `0`.

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


More information about the wp-trac mailing list