PluginProbe
WANotifier for Forms and Actions / 3.1.1
WANotifier for Forms and Actions v3.1.1
3.1.1 3.1.0 3.0.4 2.7.10 2.7.11 2.7.12 2.7.13 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 3.0.0 3.0.1 3.0.2 3.0.3 trunk 0.1.0 0.1.1 1.0.0 1.0.1 1.0.2 All 67 releases
← All changes | libraries/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php +4 -8 2.7.93.1.1 View file →
@@ -1,8 +1,5 @@
1 1 <?php
2 -/**
3 - * ActionScheduler_AsyncRequest_QueueRunner
4 - */
5 2
6 3 defined( 'ABSPATH' ) || exit;
7 4
8 5 /**
@@ -13,9 +10,8 @@
13 10 /**
14 11 * Data store for querying actions
15 12 *
16 13 * @var ActionScheduler_Store
17 - * @access protected
18 14 */
19 15 protected $store;
20 16
21 17 /**
@@ -21,9 +17,8 @@
21 17 /**
22 18 * Prefix for ajax hooks
23 19 *
24 20 * @var string
25 - * @access protected
26 21 */
27 22 protected $prefix = 'as';
28 23
29 24 /**
@@ -29,14 +24,15 @@
29 24 /**
30 25 * Action for ajax hooks
31 26 *
32 27 * @var string
33 - * @access protected
34 28 */
35 29 protected $action = 'async_request_queue_runner';
36 30
37 31 /**
38 - * Initiate new async request
32 + * Initiate new async request.
33 + *
34 + * @param ActionScheduler_Store $store Store object.
39 35 */
40 36 public function __construct( ActionScheduler_Store $store ) {
41 37 parent::__construct();
42 38 $this->store = $store;
@@ -48,9 +44,9 @@
48 44 * Run a queue, and maybe dispatch another async request to run another queue
49 45 * if there are still pending actions after completing a queue in this request.
50 46 */
51 47 protected function handle() {
52 - do_action( 'action_scheduler_run_queue', 'Async Request' ); // run a queue in the same way as WP Cron, but declare the Async Request context
48 + do_action( 'action_scheduler_run_queue', 'Async Request' ); // run a queue in the same way as WP Cron, but declare the Async Request context.
53 49
54 50 $sleep_seconds = $this->get_sleep_seconds();
55 51
56 52 if ( $sleep_seconds ) {