mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
Squashed 'includes/lib/action-scheduler/' content from commit c82834771
git-subtree-dir: includes/lib/action-scheduler git-subtree-split: c828347715e6c3318c8ab8b4fea2d87b31d51aac
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_Abstract_Schedule
|
||||
*/
|
||||
abstract class ActionScheduler_Schedule_Deprecated implements ActionScheduler_Schedule {
|
||||
|
||||
/**
|
||||
* Get the date & time this schedule was created to run, or calculate when it should be run
|
||||
* after a given date & time.
|
||||
*
|
||||
* @param DateTime $after DateTime to calculate against.
|
||||
*
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function next( DateTime $after = null ) {
|
||||
if ( empty( $after ) ) {
|
||||
$return_value = $this->get_date();
|
||||
$replacement_method = 'get_date()';
|
||||
} else {
|
||||
$return_value = $this->get_next( $after );
|
||||
$replacement_method = 'get_next( $after )';
|
||||
}
|
||||
|
||||
_deprecated_function( __METHOD__, '3.0.0', __CLASS__ . '::' . $replacement_method ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
|
||||
return $return_value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user