Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35495, comment 3


Ignore:
Timestamp:
01/18/2016 11:46:15 AM (9 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35495, comment 3

    initial v1  
    22> I guess we can't just use `function get_terms( $args = array() ) {…}` and `func_get_args()` to maintain backwards compatibility? Would look more clean than `get_terms( null, $args )`.
    33
    4 +1 for this idea, it's definitely cleaner
     4+1 for this idea, it's definitely cleaner. So I assume that would also mean we would need to add a `taxonomies` key in the `$args` array. If a user uses both parameters, but still adds taxonomies in the `$args` array (makes no sense to me, but it would be possible), what takes precedence there? Or do you mean that the syntax with 1 parameters is only if you don't need a specific taxonomy while the syntax with 2 parameters should be used otherwise?