[wp-trac] [WordPress Trac] #37825: Introduce functions to check whether there are multiple taxonomy terms
WordPress Trac
noreply at wordpress.org
Thu Aug 25 12:33:11 UTC 2016
#37825: Introduce functions to check whether there are multiple taxonomy terms
-------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
-------------------------+-----------------------------
We've had a function `is_multi_author()` since version 3.2.0, which is
regularly used by themes to check if a site has multiple authors with
published posts.
A similar function is often needed by themes for taxonomies (mostly
categories), for example the latest default themes have contained a
function `*_categorized_blog()`. I think this functionality is essential
for several themes, and we can make their lifes easier by providing these
functions to them (especially since several theme authors don't really
wanna mess with hooks for invalidating transients).
Of course, for backward compatibility a theme should check whether that
function exists, and if not, it still needs to take care of things by
itself. However, I think this will still be a good solution long-term to
include this functionality in WordPress Core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37825>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list