WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 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)

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

Download all attachments as: .zip

Change History (2)

@rejon8 years ago

This is the patch which does what I say.

comment:1 @ryan8 years ago

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

Fix is already in.

Note: See TracTickets for help on using tickets.