Skip to content

Commit 9d99d9c

Browse files
Docs: Correct the type of the $request_id parameter in privacy functions.
This applies to `wp_send_user_request()` and `wp_validate_user_request_key()`. Follow-up to [43008]. Props skithund, dhruvang21, SergeyBiryukov. Fixes #63682. git-svn-id: https://develop.svn.wordpress.org/trunk@60489 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9c9dfd2 commit 9d99d9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/user.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4802,7 +4802,7 @@ function wp_user_request_action_description( $action_name ) {
48024802
*
48034803
* @since 4.9.6
48044804
*
4805-
* @param string $request_id ID of the request created via wp_create_user_request().
4805+
* @param int $request_id ID of the request created via wp_create_user_request().
48064806
* @return true|WP_Error True on success, `WP_Error` on failure.
48074807
*/
48084808
function wp_send_user_request( $request_id ) {
@@ -4976,7 +4976,7 @@ function wp_generate_user_request_key( $request_id ) {
49764976
*
49774977
* @since 4.9.6
49784978
*
4979-
* @param string $request_id ID of the request being confirmed.
4979+
* @param int $request_id ID of the request being confirmed.
49804980
* @param string $key Provided key to validate.
49814981
* @return true|WP_Error True on success, WP_Error on failure.
49824982
*/

0 commit comments

Comments
 (0)