Commit 8369dc6b authored by Erick Hitter's avatar Erick Hitter

Remove unnecessary and incorrectly-used `$wpdb->prepare()` that triggers an...

Remove unnecessary and incorrectly-used `$wpdb->prepare()` that triggers an error currently. Since no untrusted variables are added to the query, there's nothing to prepare.

See http://wordpress.org/support/topic/prepare-warning-in-35.
parent 633cf33e
......@@ -189,7 +189,7 @@ class Date_Based_Taxonomy_Archives {
( $taxonomies == 'custom' && ! is_category() && ! is_tag() && is_tax() ) ||
is_array( $taxonomies )
) {
$join .= $wpdb->prepare( " INNER JOIN {$wpdb->term_relationships} AS dbtrtr on dbtrtr.object_id = {$wpdb->posts}.ID" );
$join .= " INNER JOIN {$wpdb->term_relationships} AS dbtrtr on dbtrtr.object_id = {$wpdb->posts}.ID";
$this->filter_archive_links = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment