Docs: Various docblock corrections particularly relating to boolean types.

See #51800

Built from https://develop.svn.wordpress.org/trunk@49926


git-svn-id: http://core.svn.wordpress.org/trunk@49625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn
2021-01-03 21:57:09 +00:00
parent bf51961e7e
commit 53da9208dd
16 changed files with 28 additions and 26 deletions

View File

@@ -187,6 +187,9 @@ final class WP_Hook implements Iterator, ArrayAccess {
/**
* Checks if a specific action has been registered for this hook.
*
* When using the $function_to_check argument, this function may return a non-boolean value
* that evaluates to false (e.g. 0), so use the === operator for testing the return value.
*
* @since 4.7.0
*
* @param string $tag Optional. The name of the filter hook. Default empty.