← All changes
|
vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php
+2
-0
1.4.1
→
trunk
View file →
| @@ -306,8 +306,9 @@ | ||
| 306 | 306 | $schedule = new ActionScheduler_SimpleSchedule( $date ); |
| 307 | 307 | break; |
| 308 | 308 | |
| 309 | 309 | default: |
| 310 | + // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log | |
| 310 | 311 | error_log( "Unknown action type '{$options['type']}' specified when trying to create an action for '{$options['hook']}'." ); |
| 311 | 312 | return 0; |
| 312 | 313 | } |
| 313 | 314 | |
| @@ -317,8 +318,9 @@ | ||
| 317 | 318 | $action_id = 0; |
| 318 | 319 | try { |
| 319 | 320 | $action_id = $options['unique'] ? $this->store_unique_action( $action ) : $this->store( $action ); |
| 320 | 321 | } catch ( Exception $e ) { |
| 322 | + // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log | |
| 321 | 323 | error_log( |
| 322 | 324 | sprintf( |
| 323 | 325 | /* translators: %1$s is the name of the hook to be enqueued, %2$s is the exception message. */ |
| 324 | 326 | __( 'Caught exception while enqueuing action "%1$s": %2$s', 'action-scheduler' ), |