From 9ad6dab3db3ecdb92314c2b9a6d57486b546afa7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 21 Sep 2017 09:59:12 +0000 Subject: [PATCH] Docs: Use correct order of arguments in the DocBlock for `WP_Hook::has_filter()`. Props munyagu. Fixes #41941. git-svn-id: https://develop.svn.wordpress.org/trunk@41551 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-hook.php b/src/wp-includes/class-wp-hook.php index f70be1a251..3f797098b8 100755 --- a/src/wp-includes/class-wp-hook.php +++ b/src/wp-includes/class-wp-hook.php @@ -189,9 +189,9 @@ final class WP_Hook implements Iterator, ArrayAccess { * * @since 4.7.0 * - * @param callable|bool $function_to_check Optional. The callback to check for. Default false. * @param string $tag Optional. The name of the filter hook. Used for building * the callback ID when SPL is not available. Default empty. + * @param callable|bool $function_to_check Optional. The callback to check for. Default false. * @return bool|int The priority of that hook is returned, or false if the function is not attached. */ public function has_filter( $tag = '', $function_to_check = false ) {