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

WordPress Trac noreply at wordpress.org
Fri Apr 1 15:35:48 UTC 2016


#36399: Change function signature of `wp_count_terms()` to be comliant with recent
`get_terms()` changes
-------------------------+------------------------------
 Reporter:  flixos90     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by flixos90):

 * keywords:   => has-patch


Comment:

 [attachment:36399.diff] is a patch for this. Specifically we need to
 determine if the check for `$do_legacy_args` is safe enough here. As an
 alternative, we could create a new internal function like
 `_get_terms_defaults()` which would allow us to do the same kind of
 verification as in `get_terms()`.

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


More information about the wp-trac mailing list