Skip to content

Commit

Permalink
Merge pull request #1114 from crstauf/phpcs/ActionScheduler_ActionFac…
Browse files Browse the repository at this point in the history
…tory.php

PHPCS: `classes/ActionScheduler_ActionFactory.php`
  • Loading branch information
barryhughes authored Oct 22, 2024
2 parents 28b528b + 3ee60fa commit 85975ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/ActionScheduler_ActionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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. */
Expand Down

0 comments on commit 85975ea

Please sign in to comment.