mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Docs: In various @return tags, list the expected type first, instead of false or WP_Error.
Follow-up to [46696], [47060], [49926], [49927]. See #51800. git-svn-id: https://develop.svn.wordpress.org/trunk@49929 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -194,7 +194,7 @@ final class WP_Hook implements Iterator, ArrayAccess {
|
||||
*
|
||||
* @param string $tag Optional. The name of the filter hook. Default empty.
|
||||
* @param callable|false $function_to_check Optional. The callback to check for. Default false.
|
||||
* @return int|bool If `$function_to_check` is omitted, returns boolean for whether the hook has
|
||||
* @return bool|int If `$function_to_check` is omitted, returns boolean for whether the hook has
|
||||
* anything registered. When checking a specific function, the priority of that
|
||||
* hook is returned, or false if the function is not attached.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user