Opened 19 years ago
Closed 19 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | General | Version: | |
| Severity: | blocker | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is the patch which does what I say.