PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.2
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.2
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Services / Libraries / action-scheduler / deprecated / ActionScheduler_Abstract_QueueRunner_Deprecated.php

ActionScheduler_Abstract_QueueRunner_Deprecated.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.2, at app/Services/Libraries/action-scheduler/deprecated/ActionScheduler_Abstract_QueueRunner_Deprecated.php

28 lines 852 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Abstract class with common Queue Cleaner functionality.
5 */
6 abstract class ActionScheduler_Abstract_QueueRunner_Deprecated {
7
8 /**
9 * Get the maximum number of seconds a batch can run for.
10 *
11 * @deprecated 2.1.1
12 * @return int The number of seconds.
13 */
14 protected function get_maximum_execution_time() {
15 _deprecated_function( __METHOD__, '2.1.1', 'ActionScheduler_Abstract_QueueRunner::get_time_limit()' );
16
17 $maximum_execution_time = 30;
18
19 // Apply deprecated filter.
20 if ( has_filter( 'action_scheduler_maximum_execution_time' ) ) {
21 _deprecated_function( 'action_scheduler_maximum_execution_time', '2.1.1', 'action_scheduler_queue_runner_time_limit' );
22 $maximum_execution_time = apply_filters( 'action_scheduler_maximum_execution_time', $maximum_execution_time );
23 }
24
25 return absint( $maximum_execution_time );
26 }
27 }
28