Skip to content
Snippets Groups Projects
Commit f403daa7 authored by Erick Hitter's avatar Erick Hitter
Browse files

Correct use of `$wpdb->prepare()` to resolve PHP warning "Missing argument 2...

Correct use of `$wpdb->prepare()` to resolve PHP warning "Missing argument 2 for wpdb::prepare(), called in /wp-content/plugins/wp-cron-control/wp-cron-control.php on line 291 and defined in /wp-includes/wp-db.php...."
parent 03778dd5
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 = 'future' " ); $sql = $wpdb->prepare( "SELECT ID, post_date_gmt FROM $wpdb->posts WHERE post_status = %s", '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