From 9d0e658902fe72ec74c0054af84742d8894987ae Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 8 Jun 2023 07:52:58 +0000 Subject: [PATCH] Docs: Mark `apply_filters()` third parameter `$args` as optional. The `$args` parameter of `apply_filters()` is optional. This changeset updates the related Docblock description accordingly so the parameter is not marked as `required` on DevHub. Props gaeldenysiak, audrasjb, gilles66. Fixes #58481. See #57840. git-svn-id: https://develop.svn.wordpress.org/trunk@55893 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/plugin.php b/src/wp-includes/plugin.php index 1fc1343fa9..77c1eb4ef6 100644 --- a/src/wp-includes/plugin.php +++ b/src/wp-includes/plugin.php @@ -167,7 +167,7 @@ function add_filter( $hook_name, $callback, $priority = 10, $accepted_args = 1 ) * * @param string $hook_name The name of the filter hook. * @param mixed $value The value to filter. - * @param mixed ...$args Additional parameters to pass to the callback functions. + * @param mixed ...$args Optional. Additional parameters to pass to the callback functions. * @return mixed The filtered value after all hooked functions are applied to it. */ function apply_filters( $hook_name, $value, ...$args ) {