Verified Commit 409a55f9 authored by Erick Hitter's avatar Erick Hitter
Browse files

Table name shouldn't be hardcoded, though Core usually figures it out

This doesn't seem to have caused any significant issues, but it did trigger an occasional warning that I'd lost in other noise.
parent 2b581213
......@@ -345,7 +345,7 @@ class Cron_Options_CPT extends Singleton {
} else {
global $wpdb;
$wpdb->update( 'posts', array( 'post_status' => self::POST_STATUS_COMPLETED, ), array( 'ID' => $job_post_id, ) );
$wpdb->update( $wpdb->posts, array( 'post_status' => self::POST_STATUS_COMPLETED, ), array( 'ID' => $job_post_id, ) );
wp_add_trashed_suffix_to_post_name_for_post( $job_post_id );
$this->posts_to_clean[] = $job_post_id;
}
......
Supports Markdown
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