Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#41959 closed defect (bug) (fixed)

Incorrect filename for 'post_password_required' filter duplication inline docs

Reported by: coffee2code Owned by: SergeyBiryukov
Priority: low Milestone: 4.9
Component: Posts, Post Types Version: 4.7
Severity: trivial Keywords: has-patch
Cc: Focuses: docs

Description

The canonical documentation for the 'post_password_required' filter is in post_password_required() in the file wp-includes/post-template.php.

That same function contains two duplicate uses of the filter, both of which are correctly documented as duplicates but incorrectly refer to the file wp-includes/post.php as containing the canonical documentation. Looks like this was incorrect when the filter was introduced in [38603].

The attached patch fixes the incorrect file references in the inline docs.

Attachments (1)

41959.diff (774 bytes ) - added by coffee2code 9 years ago.
The patch mentioned in ticket description.

Download all attachments as: .zip

Change History (3)

@coffee2code
9 years ago

The patch mentioned in ticket description.

#1 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review4.9

#2 @SergeyBiryukov
9 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 41567:

Docs: Correct filename references in duplicate hook comments for post_password_required filter.

Props coffee2code.
Fixes #41959.

Note: See TracTickets for help on using tickets.