From 3ee60fa60e036542a61d0177d0ee4971b5362642 Mon Sep 17 00:00:00 2001 From: Caleb Stauffer Date: Thu, 3 Oct 2024 14:28:49 -0400 Subject: [PATCH] ignore smells in classes/ActionScheduler_ActionFactory.php --- classes/ActionScheduler_ActionFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/ActionScheduler_ActionFactory.php b/classes/ActionScheduler_ActionFactory.php index c8d68af3f..722b60204 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. */