Ticket #4384 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

Fix to taxonomy.php which doesn't allow setting of link_category, but rather only category in sql call

Reported by: rejon Assigned to: ryan
Priority: normal Milestone: 2.3
Component: General Version:
Severity: blocker Keywords:
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

wp-taxonomy-svn-2007-06-01.diff (1.5 kB) - added by rejon on 06/01/07 07:17:24.
This is the patch which does what I say.

Change History

06/01/07 07:17:24 changed by rejon

  • attachment wp-taxonomy-svn-2007-06-01.diff added.

This is the patch which does what I say.

08/31/07 22:23:49 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

Fix is already in.