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.
Attachments (1)
Change History (11)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Updated doc block to note that $page is a WP_Post Object