Commit 7b401919 authored by Erick Hitter's avatar Erick Hitter
Browse files

Remove another unnecessary use of `$wpdb->prepare()` for the same reasons as in 8369dc6b.

parent 8369dc6b
......@@ -77,7 +77,7 @@ class Date_Based_Taxonomy_Archives {
if ( is_numeric( $limit ) )
$limit = ' LIMIT ' . absint( $limit );
$query = $wpdb->prepare( "SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $wpdb->posts $join $where GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC $limit" );
$query = "SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $wpdb->posts $join $where GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC $limit";
//Generate cache key, check cache, query DB if necessary and cache results
$cache_key = $this->get_incrementor() . md5( $query );
......
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