From a7d02201ea83e5f7725fa82e61ebdb0088091c66 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 23 Jul 2022 16:57:09 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@53770 git-svn-id: http://core.svn.wordpress.org/trunk@53329 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 2 +- wp-includes/plugin.php | 2 +- wp-includes/revision.php | 2 +- wp-includes/version.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 2c8c3125ae..0ef297921d 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -448,7 +448,7 @@ function get_allowed_http_origins() { * * @since 3.4.0 * - * @param null|string $origin Origin URL. If not provided, the value of get_http_origin() is used. + * @param string|null $origin Origin URL. If not provided, the value of get_http_origin() is used. * @return string Origin URL if allowed, empty string if not. */ function is_allowed_http_origin( $origin = null ) { diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index bd28be7899..5e9ccf08ca 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -363,7 +363,7 @@ function current_filter() { * @see did_action() * @global string[] $wp_current_filter Current filter. * - * @param null|string $hook_name Optional. Filter hook to check. Defaults to null, + * @param string|null $hook_name Optional. Filter hook to check. Defaults to null, * which checks if any filter is currently being run. * @return bool Whether the filter is currently in the stack. */ diff --git a/wp-includes/revision.php b/wp-includes/revision.php index a039c706fe..7874a897fb 100644 --- a/wp-includes/revision.php +++ b/wp-includes/revision.php @@ -584,7 +584,7 @@ function wp_get_last_revision_id_and_total_count( $post = 0 ) { * @since 5.9.0 * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. - * @return null|string The URL for editing revisions on the given post, otherwise null. + * @return string|null The URL for editing revisions on the given post, otherwise null. */ function wp_get_post_revisions_url( $post = 0 ) { $post = get_post( $post ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6321aef658..63d76a5260 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53769'; +$wp_version = '6.1-alpha-53770'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.