← All changes
|
vendor/woocommerce/action-scheduler/action-scheduler.php
+10
-10
1.0.2
→
trunk
View file →
| @@ -4,13 +4,13 @@ | ||
| 4 | 4 | * Plugin URI: https://actionscheduler.org |
| 5 | 5 | * Description: A robust scheduling library for use in WordPress plugins. |
| 6 | 6 | * Author: Automattic |
| 7 | 7 | * Author URI: https://automattic.com/ |
| 8 | - * Version: 3.7.1 | |
| 8 | + * Version: 3.9.0 | |
| 9 | 9 | * License: GPLv3 |
| 10 | - * Requires at least: 6.2 | |
| 11 | - * Tested up to: 6.4 | |
| 12 | - * Requires PHP: 5.6 | |
| 10 | + * Requires at least: 6.5 | |
| 11 | + * Tested up to: 6.7 | |
| 12 | + * Requires PHP: 7.1 | |
| 13 | 13 | * |
| 14 | 14 | * Copyright 2019 Automattic, Inc. (https://automattic.com/contact/) |
| 15 | 15 | * |
| 16 | 16 | * This program is free software: you can redistribute it and/or modify |
| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | * |
| 29 | 29 | * @package ActionScheduler |
| 30 | 30 | */ |
| 31 | 31 | |
| 32 | -if ( ! function_exists( 'action_scheduler_register_3_dot_7_dot_1' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION. | |
| 32 | +if ( ! function_exists( 'action_scheduler_register_3_dot_9_dot_0' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION. | |
| 33 | 33 | |
| 34 | 34 | if ( ! class_exists( 'ActionScheduler_Versions', false ) ) { |
| 35 | 35 | require_once __DIR__ . '/classes/ActionScheduler_Versions.php'; |
| 36 | 36 | add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 ); |
| @@ -35,17 +35,17 @@ | ||
| 35 | 35 | require_once __DIR__ . '/classes/ActionScheduler_Versions.php'; |
| 36 | 36 | add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 ); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_7_dot_1', 0, 0 ); // WRCS: DEFINED_VERSION. | |
| 39 | + add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_9_dot_0', 0, 0 ); // WRCS: DEFINED_VERSION. | |
| 40 | 40 | |
| 41 | 41 | // phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace |
| 42 | 42 | /** |
| 43 | 43 | * Registers this version of Action Scheduler. |
| 44 | 44 | */ |
| 45 | - function action_scheduler_register_3_dot_7_dot_1() { // WRCS: DEFINED_VERSION. | |
| 45 | + function action_scheduler_register_3_dot_9_dot_0() { // WRCS: DEFINED_VERSION. | |
| 46 | 46 | $versions = ActionScheduler_Versions::instance(); |
| 47 | - $versions->register( '3.7.1', 'action_scheduler_initialize_3_dot_7_dot_1' ); // WRCS: DEFINED_VERSION. | |
| 47 | + $versions->register( '3.9.0', 'action_scheduler_initialize_3_dot_9_dot_0' ); // WRCS: DEFINED_VERSION. | |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | // phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace |
| 51 | 51 | /** |
| @@ -50,9 +50,9 @@ | ||
| 50 | 50 | // phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace |
| 51 | 51 | /** |
| 52 | 52 | * Initializes this version of Action Scheduler. |
| 53 | 53 | */ |
| 54 | - function action_scheduler_initialize_3_dot_7_dot_1() { // WRCS: DEFINED_VERSION. | |
| 54 | + function action_scheduler_initialize_3_dot_9_dot_0() { // WRCS: DEFINED_VERSION. | |
| 55 | 55 | // A final safety check is required even here, because historic versions of Action Scheduler |
| 56 | 56 | // followed a different pattern (in some unusual cases, we could reach this point and the |
| 57 | 57 | // ActionScheduler class is already defined—so we need to guard against that). |
| 58 | 58 | if ( ! class_exists( 'ActionScheduler', false ) ) { |
| @@ -62,9 +62,9 @@ | ||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | // Support usage in themes - load this version if no plugin has loaded a version yet. |
| 65 | 65 | if ( did_action( 'plugins_loaded' ) && ! doing_action( 'plugins_loaded' ) && ! class_exists( 'ActionScheduler', false ) ) { |
| 66 | - action_scheduler_initialize_3_dot_7_dot_1(); // WRCS: DEFINED_VERSION. | |
| 66 | + action_scheduler_initialize_3_dot_9_dot_0(); // WRCS: DEFINED_VERSION. | |
| 67 | 67 | do_action( 'action_scheduler_pre_theme_init' ); |
| 68 | 68 | ActionScheduler_Versions::initialize_latest_version(); |
| 69 | 69 | } |
| 70 | 70 | } |