Make WordPress Core

Opened 8 months ago

Closed 8 months ago

#41959 closed defect (bug) (fixed)

Incorrect filename for 'post_password_required' filter duplication inline docs

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


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 8 months ago.
The patch mentioned in ticket description.

Download all attachments as: .zip

Change History (3)

8 months ago

The patch mentioned in ticket description.

#1 @SergeyBiryukov
8 months ago

  • Milestone changed from Awaiting Review to 4.9

#2 @SergeyBiryukov
8 months ago

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

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.