Make WordPress Core


Ignore:
Timestamp:
01/04/2021 05:16:43 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-hook.php

    r49928 r49929  
    195195     * @param string         $tag               Optional. The name of the filter hook. Default empty.
    196196     * @param callable|false $function_to_check Optional. The callback to check for. Default false.
    197      * @return int|bool If `$function_to_check` is omitted, returns boolean for whether the hook has
     197     * @return bool|int If `$function_to_check` is omitted, returns boolean for whether the hook has
    198198     *                  anything registered. When checking a specific function, the priority of that
    199199     *                  hook is returned, or false if the function is not attached.
Note: See TracChangeset for help on using the changeset viewer.