diff --git a/inc/handler/class-post-handler.php b/inc/handler/class-post-handler.php index 8022f43e..87ff1db6 100644 --- a/inc/handler/class-post-handler.php +++ b/inc/handler/class-post-handler.php @@ -229,8 +229,13 @@ protected function insert_permitted( string $transient_key, array $log ): bool { return false; } - // Allow unrestricted logging if filtered. - if ( \apply_filters( 'ai_logger_unrestricted_logging', false ) ) { + /** + * Allow unrestricted logging if filtered. + * + * @param bool $unrestricted_logging Whether to allow unrestricted logging. + * @param array $log Log arguments. + */ + if ( \apply_filters( 'ai_logger_unrestricted_logging', false, $log ) ) { return true; } @@ -242,9 +247,8 @@ protected function insert_permitted( string $transient_key, array $log ): bool { } /** - * Assign the terms associated with the new post, currently - * used to apply a Log Level (info, warning, error) and the - * custom context to a log + * Assign the terms associated with the new post, currently used to apply a + * Log Level (info, warning, error) and the custom context to a log * * @param int $new_post_id Post ID. * @param string $term Term name.