-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #357 from Prospress/version_3_0_0_beta
Tag version 3.0.0-beta-1
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* Description: A robust scheduling library for use in WordPress plugins. | ||
* Author: Prospress | ||
* Author URI: https://prospress.com/ | ||
* Version: 3.0.0 | ||
* Version: 3.0.0-beta-1 | ||
* License: GPLv3 | ||
* | ||
* Copyright 2019 Prospress, Inc. (email : [email protected]) | ||
|
@@ -25,21 +25,21 @@ | |
* | ||
*/ | ||
|
||
if ( ! function_exists( 'action_scheduler_register_3_dot_0_dot_0' ) ) { | ||
if ( ! function_exists( 'action_scheduler_register_3_dot_0_dot_0_beta_1' ) ) { | ||
|
||
if ( ! class_exists( 'ActionScheduler_Versions' ) ) { | ||
require_once( 'classes/ActionScheduler_Versions.php' ); | ||
add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 ); | ||
} | ||
|
||
add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_0_dot_0', 0, 0 ); | ||
add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_0_dot_0_beta_1', 0, 0 ); | ||
|
||
function action_scheduler_register_3_dot_0_dot_0() { | ||
function action_scheduler_register_3_dot_0_dot_0_beta_1() { | ||
$versions = ActionScheduler_Versions::instance(); | ||
$versions->register( '3.0.0', 'action_scheduler_initialize_3_dot_0_dot_0' ); | ||
$versions->register( '3.0.0-beta-1', 'action_scheduler_initialize_3_dot_0_dot_0_beta_1' ); | ||
} | ||
|
||
function action_scheduler_initialize_3_dot_0_dot_0() { | ||
function action_scheduler_initialize_3_dot_0_dot_0_beta_1() { | ||
require_once( 'classes/abstracts/ActionScheduler.php' ); | ||
ActionScheduler::init( __FILE__ ); | ||
} | ||
|