Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#25774 closed defect (bug) (fixed)

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

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


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 11 years ago.

Download all attachments as: .zip

Change History (4)

11 years ago

#1 @mauryaratan
11 years ago

  • Keywords has-patch added

#2 @ocean90
11 years ago

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

#3 @SergeyBiryukov
11 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.