Make WordPress Core

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's profile rejon Owned by: ryan's profile ryan
Milestone: 2.3 Priority: normal
Severity: blocker Version:
Component: General Keywords:
Focuses: Cc:


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)

wp-taxonomy-svn-2007-06-01.diff (1.5 KB) - added by rejon 17 years ago.
This is the patch which does what I say.

Download all attachments as: .zip

Change History (2)

17 years ago

This is the patch which does what I say.

#1 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fix is already in.

Note: See TracTickets for help on using tickets.