[wp-trac] [WordPress Trac] #61749: `wp_list_pages()` depth of `0` can show only top level of pages

WordPress Trac noreply at wordpress.org
Thu Jul 25 17:01:17 UTC 2024


#61749: `wp_list_pages()` depth of `0` can show only top level of pages
--------------------------------------+---------------------
 Reporter:  peterwilsoncc             |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.6.2
Component:  General                   |     Version:  6.6
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by freibergergarcia):

 See the suggested fix for the issue: https://github.com/WordPress
 /wordpress-develop/pull/7091.

 I added a unit test for depth=0, triggering the wp_parse_args to simulate
 what was raised.
 I also manually tested as suggested above. Hopefully, it will put us in
 the right direction.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61749#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list