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/plugin.php

    r49928 r49929  
    133133 * @param string         $tag               The name of the filter hook.
    134134 * @param callable|false $function_to_check Optional. The callback to check for. Default false.
    135  * @return int|bool If `$function_to_check` is omitted, returns boolean for whether the hook has
     135 * @return bool|int If `$function_to_check` is omitted, returns boolean for whether the hook has
    136136 *                  anything registered. When checking a specific function, the priority of that
    137137 *                  hook is returned, or false if the function is not attached.
     
    566566 * @param string         $tag               The name of the action hook.
    567567 * @param callable|false $function_to_check Optional. The callback to check for. Default false.
    568  * @return int|bool If `$function_to_check` is omitted, returns boolean for whether the hook has
     568 * @return bool|int If `$function_to_check` is omitted, returns boolean for whether the hook has
    569569 *                  anything registered. When checking a specific function, the priority of that
    570570 *                  hook is returned, or false if the function is not attached.
Note: See TracChangeset for help on using the changeset viewer.