[wp-trac] [WordPress Trac] #44398: `list_pages` filter docblock improvement

WordPress Trac noreply at wordpress.org
Mon Jun 18 19:09:01 UTC 2018


#44398: `list_pages` filter docblock improvement
--------------------------+----------------------------------------
 Reporter:  desrosj       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.9
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
  Focuses:  docs          |
--------------------------+----------------------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44398>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list