diff --git a/includes/class-main.php b/includes/class-main.php index 0c8897486d25e9f1f66a74b5b9c2a0aeaeb7c54b..b68c9495a3e611ef269def1ea3df5114d3a13d7b 100644 --- a/includes/class-main.php +++ b/includes/class-main.php @@ -237,26 +237,6 @@ class Main { unset( $_REQUEST['delete_all2'] ); } - /** - * Create cron event - * - * @param object $vars Bulk-request variables. - * @return bool - */ - public static function schedule_processing( $vars ) { - return false !== wp_schedule_single_event( time(), self::CRON_EVENT, array( $vars ) ); - } - - /** - * Retrieve timestamp for next scheduled event with given vars - * - * @param object $vars Bulk-request variables. - * @return int - */ - public static function next_scheduled( $vars ) { - return (int) wp_next_scheduled( self::CRON_EVENT, array( $vars ) ); - } - /** * Redirect, including a flag to indicate if the bulk process was scheduled successfully * @@ -305,6 +285,26 @@ class Main { <?php } + /** + * Create cron event + * + * @param object $vars Bulk-request variables. + * @return bool + */ + public static function schedule_processing( $vars ) { + return false !== wp_schedule_single_event( time(), self::CRON_EVENT, array( $vars ) ); + } + + /** + * Retrieve timestamp for next scheduled event with given vars + * + * @param object $vars Bulk-request variables. + * @return int + */ + public static function next_scheduled( $vars ) { + return (int) wp_next_scheduled( self::CRON_EVENT, array( $vars ) ); + } + /** * Find the next scheduled instance of a given action, regardless of arguments *