Make WordPress Core

Changeset 53770


Ignore:
Timestamp:
07/23/2022 04:55:18 PM (2 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.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

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

    r52838 r53770  
    449449 * @since 3.4.0
    450450 *
    451  * @param null|string $origin Origin URL. If not provided, the value of get_http_origin() is used.
     451 * @param string|null $origin Origin URL. If not provided, the value of get_http_origin() is used.
    452452 * @return string Origin URL if allowed, empty string if not.
    453453 */
  • 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.
  • trunk/src/wp-includes/revision.php

    r53769 r53770  
    585585 *
    586586 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
    587  * @return null|string The URL for editing revisions on the given post, otherwise null.
     587 * @return string|null The URL for editing revisions on the given post, otherwise null.
    588588 */
    589589function wp_get_post_revisions_url( $post = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.