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
This commit is contained in:
Sergey Biryukov 2022-07-23 16:57:09 +00:00
parent e5fca86316
commit a7d02201ea
4 changed files with 4 additions and 4 deletions

View File

@ -448,7 +448,7 @@ function get_allowed_http_origins() {
* *
* @since 3.4.0 * @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. * @return string Origin URL if allowed, empty string if not.
*/ */
function is_allowed_http_origin( $origin = null ) { function is_allowed_http_origin( $origin = null ) {

View File

@ -363,7 +363,7 @@ function current_filter() {
* @see did_action() * @see did_action()
* @global string[] $wp_current_filter Current filter. * @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. * which checks if any filter is currently being run.
* @return bool Whether the filter is currently in the stack. * @return bool Whether the filter is currently in the stack.
*/ */

View File

@ -584,7 +584,7 @@ function wp_get_last_revision_id_and_total_count( $post = 0 ) {
* @since 5.9.0 * @since 5.9.0
* *
* @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @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 ) { function wp_get_post_revisions_url( $post = 0 ) {
$post = get_post( $post ); $post = get_post( $post );

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.