Custom Taxonomy Search/Filter Bug
|Reported by:||wordpressplugindeveloper||Owned by:|
Description (last modified by scribu)
First of all, I'm really sorry for my previous fake report.
This time, I have done enough search and test, and I can't find out a solution.
I'm using fresh 3.2.1 installation for testing this plugin.
public param value is true.
exclude_from_search is false
However, it doesn't work so I have to trace the wordpress source code.
Here is what I find in the 177th line in wp-includes/query.php.
$tax_query = array( 'taxonomy' => 'category', ****** );
$this->tax_query = new WP_Tax_Query( $tax_query );
in the 2199th line,
$clauses = $this->tax_query->get_sql( $wpdb->posts, 'ID' );
WP_Tax_Query is in wp-includes/taxonomy.php
get_sql -> clean_query -> transform_query invokes sql operation
SELECT $wpdb->term_taxonomy.******* WHERE taxonomy = 'query['taxonomy']' AND *****
however, the 'query['taxonomy']' is 'category' which was hardcoded in the 177th line in wp-includes/query.php.
Is this a bug?
Change History (20)
- Component changed from General to Query
- Description modified (diff)
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed