[wp-trac] [WordPress Trac] #36399: Change function signature of `wp_count_terms()` to be compliant with recent `get_terms()` changes

WordPress Trac noreply at wordpress.org
Fri Aug 21 22:30:22 UTC 2020


#36399: Change function signature of `wp_count_terms()` to be compliant with recent
`get_terms()` changes
--------------------------------------+-----------------------
 Reporter:  flixos90                  |       Owner:  flixos90
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.6
Component:  Taxonomy                  |     Version:  4.6
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48840" 48840]:
 {{{
 #!CommitTicketReference repository="" revision="48840"
 Taxonomy: Allow for `wp_count_terms( $args )` signature, making passing a
 taxonomy optional.

 This brings `wp_count_terms()` in line with other taxonomy functions such
 as `get_terms()` which technically no longer require a taxonomy. Similar
 to the previously modified functions, no deprecation warning is triggered
 when using the legacy signature.

 Fixes #36399.
 }}}

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


More information about the wp-trac mailing list