Submit
Path:
~
/
home
/
getwphos
/
www
/
new-cytogenx
/
wp-content
/
plugins
/
woocommerce
/
packages
/
action-scheduler
/
classes
/
File Content:
ActionScheduler_Versions.php
<?php /** * Class ActionScheduler_Versions */ class ActionScheduler_Versions { /** * @var ActionScheduler_Versions */ private static $instance = NULL; private $versions = array(); public function register( $version_string, $initialization_callback ) { if ( isset($this->versions[$version_string]) ) { return FALSE; } $this->versions[$version_string] = $initialization_callback; return TRUE; } public function get_versions() { return $this->versions; } public function latest_version() { $keys = array_keys($this->versions); if ( empty($keys) ) { return false; } uasort( $keys, 'version_compare' ); return end($keys); } public function latest_version_callback() { $latest = $this->latest_version(); if ( empty($latest) || !isset($this->versions[$latest]) ) { return '__return_null'; } return $this->versions[$latest]; } /** * @return ActionScheduler_Versions * @codeCoverageIgnore */ public static function instance() { if ( empty(self::$instance) ) { self::$instance = new self(); } return self::$instance; } /** * @codeCoverageIgnore */ public static function initialize_latest_version() { $self = self::instance(); call_user_func($self->latest_version_callback()); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
WP_CLI
---
0755
abstracts
---
0755
actions
---
0755
data-stores
---
0755
migration
---
0755
schedules
---
0755
schema
---
0755
ActionScheduler_ActionClaim.php
374 bytes
0644
ActionScheduler_ActionFactory.php
16113 bytes
0644
ActionScheduler_AdminView.php
9043 bytes
0644
ActionScheduler_AsyncRequest_QueueRunner.php
2221 bytes
0644
ActionScheduler_Compatibility.php
3684 bytes
0644
ActionScheduler_DataController.php
5275 bytes
0644
ActionScheduler_DateTime.php
1670 bytes
0644
ActionScheduler_Exception.php
207 bytes
0644
ActionScheduler_FatalErrorMonitor.php
2023 bytes
0644
ActionScheduler_InvalidActionException.php
1267 bytes
0644
ActionScheduler_ListTable.php
20996 bytes
0644
ActionScheduler_LogEntry.php
1764 bytes
0644
ActionScheduler_NullLogEntry.php
219 bytes
0644
ActionScheduler_OptionLock.php
4073 bytes
0644
ActionScheduler_QueueCleaner.php
7895 bytes
0644
ActionScheduler_QueueRunner.php
9020 bytes
0644
ActionScheduler_Versions.php
1263 bytes
0644
ActionScheduler_WPCommentCleaner.php
4398 bytes
0644
ActionScheduler_wcSystemStatus.php
5264 bytes
0644
N4ST4R_ID | Naxtarrr