[wp-trac] [WordPress Trac] #41776: wp_list_catgegory array element 'exclude' better be called 'exclude_id'

WordPress Trac noreply at wordpress.org
Fri Sep 1 14:30:13 UTC 2017


#41776: wp_list_catgegory array element 'exclude' better be called 'exclude_id'
------------------------------+-----------------------------
 Reporter:  subrataemfluence  |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Taxonomy          |    Version:  4.8.1
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Could the default array element `exclude` of `wp_list_category` function
 be renamed as `exclude_id`?
 I think only `exclude` is not that self explanatory and "what to exclude"
 could easily be a reasonable question for a developer to ask!

 Instead `exclude_id` is easily understandable, even `exclude_ids` could be
 used as well because we can pass an array to it.

 Please give it a thought.

 Source file: wp-includes/category-template.php
 Line no: 508

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41776>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list