Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#34541 closed defect (bug) (fixed)

Incorrect inline doc for filter `display_post_states`

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

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 11 years ago.

Download all attachments as: .zip

Change History (4)

#1 @grapplerulrich
11 years ago

  • Keywords has-patch added

Patch added :)

#2 @SergeyBiryukov
11 years ago

  • Component GeneralPosts, Post Types
  • Focuses administration added
  • Milestone Awaiting Review4.4

#3 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 35484:

Docs: Correct $post parameter description for display_post_states filter.

Props grapplerulrich.
Fixes #34541.

Note: See TracTickets for help on using tickets.