Skip to content
Snippets Groups Projects
Commit 8369dc6b authored by Erick Hitter's avatar Erick Hitter
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,7 @@ class Date_Based_Taxonomy_Archives { ...@@ -189,7 +189,7 @@ class Date_Based_Taxonomy_Archives {
( $taxonomies == 'custom' && ! is_category() && ! is_tag() && is_tax() ) || ( $taxonomies == 'custom' && ! is_category() && ! is_tag() && is_tax() ) ||
is_array( $taxonomies ) 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; $this->filter_archive_links = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment