Commit a549839c authored by Erick Hitter's avatar Erick Hitter
Browse files

No need for `$wpdb->prepare()` if no untrusted variables are used in the query.

parent f403daa7
......@@ -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;
......
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