Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#43504 closed defect (bug) (fixed)

Use correct variable name in filter docs for the `$object_id` parameter of meta auth callbacks

Reported by: ocean90's profile ocean90 Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: normal Version: 4.9
Component: Options, Meta APIs Keywords: good-first-bug has-patch
Focuses: docs Cc:

Description

Added in [41800].

In https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/capabilities.php?marks=326,348#L312 the $object_id parameter is referenced as $post_id. It should be $object_id Object ID..

Attachments (1)

43504.patch (2.0 KB) - added by milana_cap 7 years ago.

Download all attachments as: .zip

Change History (5)

@milana_cap
7 years ago

#1 @milana_cap
7 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
7 years ago

  • Milestone changed from Future Release to 5.0

#3 @SergeyBiryukov
7 years ago

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

In 42809:

Docs: Improve documentation for meta capability filters.

Remove self-references, correct parameter names and descriptions.

Props milana_cap, ocean90, SergeyBiryukov.
Fixes #43504.

#4 @johnbillion
6 years ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.