WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#34541 closed defect (bug) (fixed)

Incorrect inline doc for filter `display_post_states`

Reported by: grapplerulrich Owned by: SergeyBiryukov
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.4
Component: Posts, Post Types Keywords: has-patch
Focuses: docs, administration Cc:

Description

The second parameter ($post) is type WP_Post, not int for the filter display_post_states. Also reported in the developer refernce https://developer.wordpress.org/reference/hooks/display_post_states/#comment-858

Attachments (1)

34541.patch (614 bytes) - added by grapplerulrich 5 years ago.

Download all attachments as: .zip

Change History (4)

#1 @grapplerulrich
5 years ago

  • Keywords has-patch added

Patch added :)

#2 @SergeyBiryukov
5 years ago

  • Component changed from General to Posts, Post Types
  • Focuses administration added
  • Milestone changed from Awaiting Review to 4.4

#3 @SergeyBiryukov
5 years ago

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

In 35484:

Docs: Correct $post parameter description for display_post_states filter.

Props grapplerulrich.
Fixes #34541.

Note: See TracTickets for help on using tickets.