Opened 17 years ago
Closed 17 years ago
#4384 closed defect (bug) (fixed)
Fix to taxonomy.php which doesn't allow setting of link_category, but rather only category in sql call
Reported by: | rejon | Owned by: | ryan |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | blocker | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Right now get_terms does not take into account the argstype? which appears that it should override the $taxonomies argument.
I got this to work per the comment in the code in wp-includes/category.php:
function &get_categories($args = ) {
TODO Add back compat fields into each object.
Set taxonomy to link_category if type=link
return get_terms('category', $args);
}
This patch patches wp-includes/taxonomy.php to allow for type to override the 1st argument of get_terms.
See the code :)
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is the patch which does what I say.