PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.0.2
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.0.2
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
image-optimization / vendor / woocommerce / action-scheduler / classes / actions / ActionScheduler_CanceledAction.php

ActionScheduler_CanceledAction.php in Image Optimizer – Compress Images and Convert to WebP or AVIF 1.0.2, at vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php

24 lines 718 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class ActionScheduler_CanceledAction
5 *
6 * Stored action which was canceled and therefore acts like a finished action but should always return a null schedule,
7 * regardless of schedule passed to its constructor.
8 */
9 class ActionScheduler_CanceledAction extends ActionScheduler_FinishedAction {
10
11 /**
12 * @param string $hook
13 * @param array $args
14 * @param ActionScheduler_Schedule $schedule
15 * @param string $group
16 */
17 public function __construct( $hook, array $args = array(), ActionScheduler_Schedule $schedule = null, $group = '' ) {
18 parent::__construct( $hook, $args, $schedule, $group );
19 if ( is_null( $schedule ) ) {
20 $this->set_schedule( new ActionScheduler_NullSchedule() );
21 }
22 }
23 }
24