Make WordPress Core

Opened 5 months ago

Closed 5 months ago

#63682 closed defect (bug) (fixed)

wp_send_user_request() incorrect type for $request_id in phpdoc

Reported by: skithund's profile skithund Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.9 Priority: normal
Severity: minor Version: 4.9.6
Component: Privacy Keywords: has-patch
Focuses: Cc:

Description

$request_id param in wp_send_user_request( $request_id ) is "ID of the request created via wp_create_user_request()."

wp_create_user_request() returns int, so phpdoc type should be should be int and not string.

Change History (3)

This ticket was mentioned in PR #9227 on WordPress/wordpress-develop by @skithund.


5 months ago
#1

  • Keywords has-patch added

$request_id is "ID of the request created via wp_create_user_request()."

wp_create_user_request() returns int, so correct type for phpdoc type should be should be int.

Trac ticket: https://core.trac.wordpress.org/ticket/63682

#2 @SergeyBiryukov
5 months ago

  • Milestone changed from Awaiting Review to 6.9

#3 @SergeyBiryukov
5 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 60489:

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.

Note: See TracTickets for help on using tickets.