Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#50502 closed defect (bug) (fixed)

Parameter description in update_post_meta()

Reported by: stevenlinx Owned by: SergeyBiryukov
Priority: normal Milestone: 5.5
Component: Posts, Post Types Version:
Severity: minor Keywords: has-patch
Cc: Focuses:

Description

Attachments (1)

50502.diff (1.6 KB ) - added by stevenlinx 6 years ago.

Download all attachments as: .zip

Change History (5)

@stevenlinx
6 years ago

#1 @stevenlinx
6 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review5.5

#3 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status assignedclosed

In 48214:

Docs: Improve documentation for the $prev_value parameter and return result of various metadata update functions.

Props stevenlinx.
Fixes #50502. See #49572.

#4 @SergeyBiryukov
6 years ago

Thanks for the patch! The $prev_value and @return improvements are now in.

I'm less inclined to add that the meta key and value should be raw and not sanitized, as it's not mentioned in other similar functions and doesn't seem to come up often. If someone feels strongly about that, feel free to reopen.

Note: See TracTickets for help on using tickets.