WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#25774 closed defect (bug) (fixed)

wp-includes/user.php: PhpDoc correction - $user_id is not a Post ID

Reported by: Corphi Owned by: SergeyBiryukov
Milestone: 3.8 Priority: normal
Severity: trivial Version: 3.7
Component: Inline Docs Keywords: has-patch commit
Focuses: Cc:

Description

To cite wp-includes/user.php, for functions add_user_meta(), get_user_meta() and update_user_meta():
* @param int $user_id Post ID.

In Version 3.7.1 it’s the lines 815, 852 and 874 respectively. $user_id is obviously not a Post ID, but a User ID.

Attachments (1)

25774.diff​ (1.3 KB) - added by mauryaratan 6 years ago.

Download all attachments as: .zip

Change History (4)

@mauryaratan
6 years ago

#1 @mauryaratan
6 years ago

  • Keywords has-patch added

#2 @ocean90
6 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.8

#3 @SergeyBiryukov
6 years ago

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

In 25997:

Correct $user_id parameter description. props mauryaratan, Corphi. fixes #25774.

Note: See TracTickets for help on using tickets.