$exists=$wpdb->get_col($wpdb->prepare("SELECT ID FROM {$wpdb->posts} WHERE post_name = %s AND post_type = %s AND post_status = %s LIMIT 1;",$this->event_name($timestamp,$action,$instance),self::POST_TYPE,self::POST_STATUS_PENDING));
...
...
@@ -250,7 +250,7 @@ class Cron_Options_CPT extends Singleton {
* Can't call `wp_insert_post()` because `wp_unique_post_slug()` breaks the plugin's expectations
* Also doesn't call `wp_insert_post()` because this function is needed before post types and capabilities are ready.