mailpoet
/
vendor
/
woocommerce
/
action-scheduler
/
deprecated
/
ActionScheduler_Abstract_QueueRunner_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_Abstract_QueueRunner_Deprecated.php
15 lines
| 1 | <?php |
| 2 | if (!defined('ABSPATH')) exit; |
| 3 | abstract class ActionScheduler_Abstract_QueueRunner_Deprecated { |
| 4 | protected function get_maximum_execution_time() { |
| 5 | _deprecated_function( __METHOD__, '2.1.1', 'ActionScheduler_Abstract_QueueRunner::get_time_limit()' ); |
| 6 | $maximum_execution_time = 30; |
| 7 | // Apply deprecated filter. |
| 8 | if ( has_filter( 'action_scheduler_maximum_execution_time' ) ) { |
| 9 | _deprecated_function( 'action_scheduler_maximum_execution_time', '2.1.1', 'action_scheduler_queue_runner_time_limit' ); |
| 10 | $maximum_execution_time = apply_filters( 'action_scheduler_maximum_execution_time', $maximum_execution_time ); |
| 11 | } |
| 12 | return absint( $maximum_execution_time ); |
| 13 | } |
| 14 | } |
| 15 |