mailpoet
/
vendor
/
woocommerce
/
action-scheduler
/
deprecated
/
ActionScheduler_Schedule_Deprecated.php
ActionScheduler_Abstract_QueueRunner_Deprecated.php
1 year ago
ActionScheduler_AdminView_Deprecated.php
1 year ago
ActionScheduler_Schedule_Deprecated.php
1 year ago
ActionScheduler_Store_Deprecated.php
4 years ago
functions.php
1 year ago
index.php
3 years ago
ActionScheduler_Schedule_Deprecated.php
16 lines
| 1 | <?php |
| 2 | if (!defined('ABSPATH')) exit; |
| 3 | abstract class ActionScheduler_Schedule_Deprecated implements ActionScheduler_Schedule { |
| 4 | public function next( ?DateTime $after = null ) { |
| 5 | if ( empty( $after ) ) { |
| 6 | $return_value = $this->get_date(); |
| 7 | $replacement_method = 'get_date()'; |
| 8 | } else { |
| 9 | $return_value = $this->get_next( $after ); |
| 10 | $replacement_method = 'get_next( $after )'; |
| 11 | } |
| 12 | _deprecated_function( __METHOD__, '3.0.0', __CLASS__ . '::' . $replacement_method ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 13 | return $return_value; |
| 14 | } |
| 15 | } |
| 16 |