From a549839cfe434cb46fc9204bc7a144e34fdeea1e Mon Sep 17 00:00:00 2001 From: Erick Hitter <ehitter@gmail.com> Date: Sat, 11 May 2013 01:30:20 -0500 Subject: [PATCH] No need for `$wpdb->prepare()` if no untrusted variables are used in the query. --- wp-cron-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-cron-control.php b/wp-cron-control.php index 86279a6..b447b8d 100644 --- a/wp-cron-control.php +++ b/wp-cron-control.php @@ -288,7 +288,7 @@ class WP_Cron_Control { global $wpdb; // grab all scheduled posts from posts table - $sql = $wpdb->prepare( "SELECT ID, post_date_gmt FROM $wpdb->posts WHERE post_status = %s", 'future' ); + $sql = "SELECT ID, post_date_gmt FROM $wpdb->posts WHERE post_status = 'future'"; $results = $wpdb->get_results( $sql ); $return = true; -- GitLab