Skip to content

Commit e2a45c0

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53770 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7e8feef commit e2a45c0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/wp-includes/http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ function get_allowed_http_origins() {
448448
*
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
*/
454454
function is_allowed_http_origin( $origin = null ) {

src/wp-includes/plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function current_filter() {
363363
* @see did_action()
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.
369369
*/

src/wp-includes/revision.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ function wp_get_last_revision_id_and_total_count( $post = 0 ) {
584584
* @since 5.9.0
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
*/
589589
function wp_get_post_revisions_url( $post = 0 ) {
590590
$post = get_post( $post );

0 commit comments

Comments
 (0)