Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#44398 closed defect (bug) (fixed)

`list_pages` filter docblock improvement

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

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 8 years ago.
Updated doc block to note that $page is a WP_Post Object

Download all attachments as: .zip

Change History (11)

@ianbelanger
8 years ago

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

#1 @ianbelanger
8 years ago

  • Keywords has-patch added; needs-patch removed

#2 @netweb
8 years ago

  • Milestone Awaiting Review5.0

#3 @desrosj
8 years ago

  • Keywords commit added
  • Owner set to ianbelanger
  • Status newassigned

Assigning to mark good-first-bug claimed.

Thanks, @ianbelanger. Patch looks good!

#4 @desrosj
8 years ago

  • Milestone 5.05.0.1

Punting to 5.0.1.

#5 @pento
8 years ago

  • Milestone 5.0.15.0.2

#6 @pento
8 years ago

  • Milestone 5.0.25.0.3

#7 @desrosj
8 years ago

  • Resolutionfixed
  • Status assignedclosed

In 44355:

Docs: Correctly specify the $page parameter of list_pages filter as a WP_Post.

Props ianbelanger.
Fixes #44398.

#8 @desrosj
8 years ago

  • Resolution fixed
  • Status closedreopened

Reopening for backport.

#9 @audrasjb
8 years ago

  • Milestone 5.0.35.1

Hi,

Per today's bug scrub, we are going to address Docs enhancements in 5.1, coming next month.

#10 @pento
8 years ago

  • Resolutionfixed
  • Status reopenedclosed
Note: See TracTickets for help on using tickets.