Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#10921 closed defect (bug) (fixed)

Add 'walker' to defaults in wp_list_pages

Reported by: josh23french Owned by:
Priority: normal Milestone: 2.9
Component: Template Version: 2.9
Severity: minor Keywords: has-patch commit
Cc: Focuses:

Description

(r11999 2.9-rare)

There is a way that a theme developer can use his own walker in wp_list_pages, or there seems to be one. The only thing blocking this is that wp_parse_args only compacts the default keys and walker is not one of them. And I really don't feel like hacking core for this theme. It's only 1 line!

Attachments (1)

post-template.php.diff (520 bytes ) - added by scribu 17 years ago.

Download all attachments as: .zip

Change History (3)

#1 @scribu
17 years ago

  • Keywords has-patch commit added
  • Milestone Unassigned2.9
  • Priority highest omg bbqnormal
  • Type feature requestdefect (bug)

You're right: walk_page_tree() has a 'walker' argument which isn't propagated from wp_list_pages().

#2 @ryan
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [12149]) Propagate walker arg down the stack. Props scribu. fixes #10921

Note: See TracTickets for help on using tickets.