From f06310f652b0cde5298056c1f5dfda6a5564c689 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 21 Feb 2020 11:00:25 -0400 Subject: [PATCH] bump version to 3.1.1 --- action-scheduler.php | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/action-scheduler.php b/action-scheduler.php index c9e362243..f4bae552a 100644 --- a/action-scheduler.php +++ b/action-scheduler.php @@ -5,7 +5,7 @@ * Description: A robust scheduling library for use in WordPress plugins. * Author: Automattic * Author URI: https://automattic.com/ - * Version: 3.1.0 + * Version: 3.1.1 * License: GPLv3 * * Copyright 2019 Automattic, Inc. (https://automattic.com/contact/) @@ -25,21 +25,21 @@ * */ -if ( ! function_exists( 'action_scheduler_register_3_dot_1_dot_0' ) ) { +if ( ! function_exists( 'action_scheduler_register_3_dot_1_dot_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_1_dot_0', 0, 0 ); + add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_1_dot_1', 0, 0 ); - function action_scheduler_register_3_dot_1_dot_0() { + function action_scheduler_register_3_dot_1_dot_1() { $versions = ActionScheduler_Versions::instance(); - $versions->register( '3.1.0', 'action_scheduler_initialize_3_dot_1_dot_0' ); + $versions->register( '3.1.1', 'action_scheduler_initialize_3_dot_1_dot_1' ); } - function action_scheduler_initialize_3_dot_1_dot_0() { + function action_scheduler_initialize_3_dot_1_dot_1() { $autoloader = __DIR__ . '/vendor/autoload.php'; if ( is_readable( $autoloader ) ) { require_once( $autoloader ); @@ -53,7 +53,7 @@ function action_scheduler_initialize_3_dot_1_dot_0() { // Support usage in themes - load this version if no plugin has loaded a version yet. if ( did_action( 'plugins_loaded' ) && ! class_exists( 'ActionScheduler' ) ) { - action_scheduler_register_3_dot_1_dot_0(); + action_scheduler_initialize_3_dot_1_dot_1(); do_action( 'action_scheduler_pre_theme_init' ); ActionScheduler_Versions::initialize_latest_version(); } diff --git a/package.json b/package.json index 92dd6620f..062f98f2b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "action-scheduler", "title": "Action Scheduler", - "version": "3.0.0", + "version": "3.1.1", "homepage": "https://actionscheduler.org/", "repository": { "type": "git",