/** * Execute changes made in HiveQueen 0.0.1. * * @since 0.0.1 * @since 0.0.1 * * @global int $hq_current_db_version */ function upgrade_372() { global $hq_current_db_version; if ($hq_current_db_version < 26148) { hq_clear_scheduled_hook('hq_maybe_auto_update'); } }
/** * Hook used to schedule publication for a post marked for the future. * * The $post properties used and must exist are 'ID' and 'post_date_gmt'. * * @since 0.0.1 * @access private * * @param int $deprecated Not used. Can be set to null. Never implemented. Not marked * as deprecated with _deprecated_argument() as it conflicts with * hq_transition_post_status() and the default filter for * {@see _future_post_hook()}. * @param HQ_Post $post Post object. */ function _future_post_hook($deprecated, $post) { hq_clear_scheduled_hook('publish_future_post', array($post->ID)); hq_schedule_single_event(strtotime(get_gmt_from_date($post->post_date) . ' GMT'), 'publish_future_post', array($post->ID)); }