Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (4 years 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/class-wp-hook.php

    r49926 r49927  
    9696     * @since 4.7.0
    9797     *
    98      * @param bool|int $new_priority     Optional. The priority of the new filter being added. Default false,
    99      *                                   for no priority being added.
    100      * @param bool     $priority_existed Optional. Flag for whether the priority already existed before the new
    101      *                                   filter was added. Default false.
     98     * @param false|int $new_priority     Optional. The priority of the new filter being added. Default false,
     99     *                                    for no priority being added.
     100     * @param bool      $priority_existed Optional. Flag for whether the priority already existed before the new
     101     *                                    filter was added. Default false.
    102102     */
    103103    private function resort_active_iterations( $new_priority = false, $priority_existed = false ) {
     
    193193     * @since 4.7.0
    194194     *
    195      * @param string        $tag               Optional. The name of the filter hook. Default empty.
    196      * @param callable|bool $function_to_check Optional. The callback to check for. Default false.
    197      * @return bool|int The priority of that hook is returned, or false if the function is not attached.
     195     * @param string         $tag               Optional. The name of the filter hook. Default empty.
     196     * @param callable|false $function_to_check Optional. The callback to check for. Default false.
     197     * @return false|int The priority of that hook is returned, or false if the function is not attached.
    198198     */
    199199    public function has_filter( $tag = '', $function_to_check = false ) {
     
    237237     * @since 4.7.0
    238238     *
    239      * @param int|bool $priority Optional. The priority number to remove. Default false.
     239     * @param int|false $priority Optional. The priority number to remove. Default false.
    240240     */
    241241    public function remove_all_filters( $priority = false ) {
Note: See TracChangeset for help on using the changeset viewer.