From 8369dc6bb100507fb7b3134234f5dd5b6d4f9771 Mon Sep 17 00:00:00 2001
From: Erick Hitter <ehitter@gmail.com>
Date: Sat, 11 May 2013 19:47:06 -0500
Subject: [PATCH] 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.
---
 date-based-taxonomy-archives.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/date-based-taxonomy-archives.php b/date-based-taxonomy-archives.php
index 38d8e27..a3f802d 100644
--- a/date-based-taxonomy-archives.php
+++ b/date-based-taxonomy-archives.php
@@ -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;
 		}
-- 
GitLab