WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49926 r49927  
    128128 * @global WP_Hook[] $wp_filter Stores all of the filters and actions.
    129129 *
    130  * @param string        $tag               The name of the filter hook.
    131  * @param callable|bool $function_to_check Optional. The callback to check for. Default false.
     130 * @param string         $tag               The name of the filter hook.
     131 * @param callable|false $function_to_check Optional. The callback to check for. Default false.
    132132 * @return false|int If $function_to_check is omitted, returns boolean for whether the hook has
    133133 *                   anything registered. When checking a specific function, the priority of that
     
    301301 * @global WP_Hook[] $wp_filter Stores all of the filters and actions.
    302302 *
    303  * @param string   $tag      The filter to remove hooks from.
    304  * @param int|bool $priority Optional. The priority number to remove. Default false.
     303 * @param string    $tag      The filter to remove hooks from.
     304 * @param int|false $priority Optional. The priority number to remove. Default false.
    305305 * @return true True when finished.
    306306 */
     
    561561 * @see has_filter() has_action() is an alias of has_filter().
    562562 *
    563  * @param string        $tag               The name of the action hook.
    564  * @param callable|bool $function_to_check Optional. The callback to check for. Default false.
     563 * @param string         $tag               The name of the action hook.
     564 * @param callable|false $function_to_check Optional. The callback to check for. Default false.
    565565 * @return bool|int If $function_to_check is omitted, returns boolean for whether the hook has
    566566 *                  anything registered. When checking a specific function, the priority of that
     
    597597 * @since 2.7.0
    598598 *
    599  * @param string   $tag      The action to remove hooks from.
    600  * @param int|bool $priority The priority number to remove them from. Default false.
     599 * @param string    $tag      The action to remove hooks from.
     600 * @param int|false $priority The priority number to remove them from. Default false.
    601601 * @return true True when finished.
    602602 */
Note: See TracChangeset for help on using the changeset viewer.