Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../vendor/woocomme.../action-s...
File: action-scheduler.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Plugin Name: Action Scheduler
[2] Fix | Delete
* Plugin URI: https://actionscheduler.org
[3] Fix | Delete
* Description: A robust scheduling library for use in WordPress plugins.
[4] Fix | Delete
* Author: Automattic
[5] Fix | Delete
* Author URI: https://automattic.com/
[6] Fix | Delete
* Version: 3.7.2
[7] Fix | Delete
* License: GPLv3
[8] Fix | Delete
* Requires at least: 6.2
[9] Fix | Delete
* Tested up to: 6.4
[10] Fix | Delete
* Requires PHP: 5.6
[11] Fix | Delete
*
[12] Fix | Delete
* Copyright 2019 Automattic, Inc. (https://automattic.com/contact/)
[13] Fix | Delete
*
[14] Fix | Delete
* This program is free software: you can redistribute it and/or modify
[15] Fix | Delete
* it under the terms of the GNU General Public License as published by
[16] Fix | Delete
* the Free Software Foundation, either version 3 of the License, or
[17] Fix | Delete
* (at your option) any later version.
[18] Fix | Delete
*
[19] Fix | Delete
* This program is distributed in the hope that it will be useful,
[20] Fix | Delete
* but WITHOUT ANY WARRANTY; without even the implied warranty of
[21] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[22] Fix | Delete
* GNU General Public License for more details.
[23] Fix | Delete
*
[24] Fix | Delete
* You should have received a copy of the GNU General Public License
[25] Fix | Delete
* along with this program. If not, see <https://www.gnu.org/licenses/>.
[26] Fix | Delete
*
[27] Fix | Delete
* @package ActionScheduler
[28] Fix | Delete
*/
[29] Fix | Delete
[30] Fix | Delete
if ( ! function_exists( 'action_scheduler_register_3_dot_7_dot_2' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION.
[31] Fix | Delete
[32] Fix | Delete
if ( ! class_exists( 'ActionScheduler_Versions', false ) ) {
[33] Fix | Delete
require_once __DIR__ . '/classes/ActionScheduler_Versions.php';
[34] Fix | Delete
add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 );
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_7_dot_2', 0, 0 ); // WRCS: DEFINED_VERSION.
[38] Fix | Delete
[39] Fix | Delete
// phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace
[40] Fix | Delete
/**
[41] Fix | Delete
* Registers this version of Action Scheduler.
[42] Fix | Delete
*/
[43] Fix | Delete
function action_scheduler_register_3_dot_7_dot_2() { // WRCS: DEFINED_VERSION.
[44] Fix | Delete
$versions = ActionScheduler_Versions::instance();
[45] Fix | Delete
$versions->register( '3.7.2', 'action_scheduler_initialize_3_dot_7_dot_2' ); // WRCS: DEFINED_VERSION.
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
// phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace
[49] Fix | Delete
/**
[50] Fix | Delete
* Initializes this version of Action Scheduler.
[51] Fix | Delete
*/
[52] Fix | Delete
function action_scheduler_initialize_3_dot_7_dot_2() { // WRCS: DEFINED_VERSION.
[53] Fix | Delete
// A final safety check is required even here, because historic versions of Action Scheduler
[54] Fix | Delete
// followed a different pattern (in some unusual cases, we could reach this point and the
[55] Fix | Delete
// ActionScheduler class is already defined—so we need to guard against that).
[56] Fix | Delete
if ( ! class_exists( 'ActionScheduler', false ) ) {
[57] Fix | Delete
require_once __DIR__ . '/classes/abstracts/ActionScheduler.php';
[58] Fix | Delete
ActionScheduler::init( __FILE__ );
[59] Fix | Delete
}
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
// Support usage in themes - load this version if no plugin has loaded a version yet.
[63] Fix | Delete
if ( did_action( 'plugins_loaded' ) && ! doing_action( 'plugins_loaded' ) && ! class_exists( 'ActionScheduler', false ) ) {
[64] Fix | Delete
action_scheduler_initialize_3_dot_7_dot_2(); // WRCS: DEFINED_VERSION.
[65] Fix | Delete
do_action( 'action_scheduler_pre_theme_init' );
[66] Fix | Delete
ActionScheduler_Versions::initialize_latest_version();
[67] Fix | Delete
}
[68] Fix | Delete
}
[69] Fix | Delete
[70] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function