| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | // never register their version. To be immune to load order, require this file |
| 32 | 32 | // DIRECTLY (require_once '.../vendor/storeengine/wordpress-sdk/init.php') rather |
| 33 | 33 | // than relying solely on Composer autoload. See README "loading order". |
| 34 | 34 | |
| 35 | -if ( ! function_exists( 'se_license_manager_register_1_dot_5_dot_5' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION. | |
| 35 | +if ( ! function_exists( 'se_license_manager_register_1_dot_5_dot_7' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION. | |
| 36 | 36 | |
| 37 | 37 | if ( ! class_exists( 'SE_License_SDK_Version_Manager', false ) ) { |
| 38 | 38 | require_once __DIR__ . '/classes/SE_License_SDK_Version_Manager.php'; |
| 39 | 39 | add_action( 'plugins_loaded', [ 'SE_License_SDK_Version_Manager', 'initialize_latest_version' ], 1, 0 ); |
| @@ -38,17 +38,17 @@ | ||
| 38 | 38 | require_once __DIR__ . '/classes/SE_License_SDK_Version_Manager.php'; |
| 39 | 39 | add_action( 'plugins_loaded', [ 'SE_License_SDK_Version_Manager', 'initialize_latest_version' ], 1, 0 ); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - add_action( 'plugins_loaded', 'se_license_manager_register_1_dot_5_dot_5', 0, 0 ); // WRCS: DEFINED_VERSION. | |
| 42 | + add_action( 'plugins_loaded', 'se_license_manager_register_1_dot_5_dot_7', 0, 0 ); // WRCS: DEFINED_VERSION. | |
| 43 | 43 | |
| 44 | 44 | // phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace |
| 45 | 45 | /** |
| 46 | 46 | * Registers this version of SE_License_SDK. |
| 47 | 47 | */ |
| 48 | - function se_license_manager_register_1_dot_5_dot_5() { // WRCS: DEFINED_VERSION. | |
| 48 | + function se_license_manager_register_1_dot_5_dot_7() { // WRCS: DEFINED_VERSION. | |
| 49 | 49 | $versions = SE_License_SDK_Version_Manager::instance(); |
| 50 | - $versions->register( '1.5.5', 'se_license_manager_initialize_1_dot_5_dot_5' ); // WRCS: DEFINED_VERSION. | |
| 50 | + $versions->register( '1.5.7', 'se_license_manager_initialize_1_dot_5_dot_7' ); // WRCS: DEFINED_VERSION. | |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | // phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace |
| 54 | 54 | /** |
| @@ -53,21 +53,21 @@ | ||
| 53 | 53 | // phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace |
| 54 | 54 | /** |
| 55 | 55 | * Initializes this version of Action Scheduler. |
| 56 | 56 | */ |
| 57 | - function se_license_manager_initialize_1_dot_5_dot_5() { // WRCS: DEFINED_VERSION. | |
| 57 | + function se_license_manager_initialize_1_dot_5_dot_7() { // WRCS: DEFINED_VERSION. | |
| 58 | 58 | // A final safety check is required even here, because historic versions of Action Scheduler |
| 59 | 59 | // followed a different pattern. (In some unusual cases, we could reach this point and the |
| 60 | 60 | // SE_License_SDK class is already defined—so we need to guard against that.) |
| 61 | 61 | if ( ! class_exists( 'SE_License_SDK', false ) ) { |
| 62 | 62 | require_once __DIR__ . '/classes/abstracts/SE_License_SDK.php'; |
| 63 | - SE_License_SDK::init( __FILE__, '1.5.5' ); | |
| 63 | + SE_License_SDK::init( __FILE__, '1.5.7' ); | |
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | // Support usage in themes - load this version if no plugin has loaded a version yet. |
| 68 | 68 | if ( did_action( 'plugins_loaded' ) && ! doing_action( 'plugins_loaded' ) && ! class_exists( 'SE_License_SDK', false ) ) { |
| 69 | - se_license_manager_initialize_1_dot_5_dot_5(); // WRCS: DEFINED_VERSION. | |
| 69 | + se_license_manager_initialize_1_dot_5_dot_7(); // WRCS: DEFINED_VERSION. | |
| 70 | 70 | do_action( 'action_scheduler_pre_theme_init' ); |
| 71 | 71 | SE_License_SDK_Version_Manager::initialize_latest_version(); |
| 72 | 72 | } |
| 73 | 73 | } |