Make WordPress Core


Ignore:
Timestamp:
07/23/2022 04:55:18 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: List the expected type first in a few functions:

  • is_allowed_http_origin()
  • doing_filter()
  • wp_get_post_revisions_url()

Follow-up to [28010], [28889], [30674], [46696], [47060], [48068], [49929], [49963], [52095], [51286], [52111].

See #55646.

File:
1 edited

Legend:

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

    r53748 r53770  
    364364 * @global string[] $wp_current_filter Current filter.
    365365 *
    366  * @param null|string $hook_name Optional. Filter hook to check. Defaults to null,
     366 * @param string|null $hook_name Optional. Filter hook to check. Defaults to null,
    367367 *                               which checks if any filter is currently being run.
    368368 * @return bool Whether the filter is currently in the stack.
Note: See TracChangeset for help on using the changeset viewer.