Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -288,7 +288,7 @@ class WP_Cron_Control { ...@@ -288,7 +288,7 @@ class WP_Cron_Control {
global $wpdb; global $wpdb;
// grab all scheduled posts from posts table // 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 ); $results = $wpdb->get_results( $sql );
$return = true; $return = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment