Skip to content

Commit eaa47ea

Browse files
apply_filters fix
1 parent c9e9965 commit eaa47ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9238,14 +9238,14 @@ function wp_get_api_request_url( $path = '/', $scheme = 'https' ) {
92389238
$domain = getenv( 'WP_UPDATE_API_BASE' );
92399239
}
92409240

9241-
$uri = $scheme . '://' . $domain . $path;
9241+
$url = $scheme . '://' . $domain . $path;
92429242
/**
92439243
* Filters the URL for a WP API request.
92449244
*
92459245
* @since 7.0.0
92469246
*
9247-
* @param string $url URL
9247+
* @param string $url URL for this WP API request.
92489248
*/
9249-
$uri = apply_filters( 'wp_api_request' );
9249+
apply_filters( 'wp_api_request', $url );
92509250
return $uri;
92519251
}

0 commit comments

Comments
 (0)