diff --git a/classes/ActionScheduler_ActionFactory.php b/classes/ActionScheduler_ActionFactory.php index c8d68af3..722b6020 100644 --- a/classes/ActionScheduler_ActionFactory.php +++ b/classes/ActionScheduler_ActionFactory.php @@ -307,6 +307,7 @@ public function create( array $options = array() ) { break; default: + // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log error_log( "Unknown action type '{$options['type']}' specified when trying to create an action for '{$options['hook']}'." ); return 0; } @@ -318,6 +319,7 @@ public function create( array $options = array() ) { try { $action_id = $options['unique'] ? $this->store_unique_action( $action ) : $this->store( $action ); } catch ( Exception $e ) { + // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log error_log( sprintf( /* translators: %1$s is the name of the hook to be enqueued, %2$s is the exception message. */