Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#41959 closed defect (bug) (fixed)

Incorrect filename for 'post_password_required' filter duplication inline docs

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

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

Download all attachments as: .zip

Change History (3)

@coffee2code
7 years ago

The patch mentioned in ticket description.

#1 @SergeyBiryukov
7 years ago

  • Milestone changed from Awaiting Review to 4.9

#2 @SergeyBiryukov
7 years 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.