[wp-trac] [WordPress Trac] #4384: Fix to taxonomy.php which doesn't
allow setting of link_category, but rather only category in sql call
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 1 07:14:56 GMT 2007
#4384: Fix to taxonomy.php which doesn't allow setting of link_category, but
rather only category in sql call
---------------------+------------------------------------------------------
Reporter: rejon | Owner: ryan
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: General | Version:
Severity: blocker | Keywords:
---------------------+------------------------------------------------------
Right now get_terms does not take into account the args['type'] 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 :)
--
Ticket URL: <http://trac.wordpress.org/ticket/4384>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list