[wp-trac] [WordPress Trac] #37825: Introduce functions to check whether there are multiple taxonomy terms

WordPress Trac noreply at wordpress.org
Thu Jun 14 18:04:43 UTC 2018


#37825: Introduce functions to check whether there are multiple taxonomy terms
----------------------------------------+-----------------------------
 Reporter:  flixos90                    |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Themes                      |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+-----------------------------

Comment (by boonebgorges):

 The naming in [attachment:37825.2.diff] looks good to me. `term` is much
 clearer in this context.

 The filter name (and variable names) in `is_multi_taxonomy()` should
 probably be updated to match the new naming. `is_multi_taxonomy` is
 misleading anyway - it suggests that an object has terms in more than one
 different taxonomy, which is not what's being tested here. "is_multi_term"
 is not particularly mellifluous but is more accurate.

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


More information about the wp-trac mailing list