WordPress.org

Make WordPress Core

Opened 5 weeks ago

Last modified 5 weeks ago

#44398 new defect (bug)

`list_pages` filter docblock improvement

Reported by: desrosj Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version: 3.9
Component: General Keywords: good-first-bug has-patch
Focuses: docs Cc:

Description

The $page parameter of Walker_PageDropdown->start_el() is a WP_Post object. No modifications are performed in the function to the $page variable.

When $page is passed to the list_pages filter at the end of the function, it is noted as an object. This could be more specific and indicate $page is a WP_Post.

Related: #36300/r37056.

Attachments (1)

44398.diff (542 bytes) - added by ianbelanger 5 weeks ago.
Updated doc block to note that $page is a WP_Post Object

Download all attachments as: .zip

Change History (3)

@ianbelanger
5 weeks ago

Updated doc block to note that $page is a WP_Post Object

#1 @ianbelanger
5 weeks ago

  • Keywords has-patch added; needs-patch removed

#2 @netweb
5 weeks ago

  • Milestone changed from Awaiting Review to 5.0
Note: See TracTickets for help on using tickets.