Commit 594d5419 authored by Erick Hitter's avatar Erick Hitter Committed by GitHub
Browse files

Merge pull request #20 from Automattic/develop

Table name shouldn't be hardcoded, though Core usually figures it out
parents 2b581213 409a55f9
......@@ -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