Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14177 closed defect (bug) (fixed)

wp_list_pages doesn't return correct links for custom post types

Reported by: chowmein's profile chowmein Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Permalinks Keywords: has-patch commit
Focuses: Cc:

Description

wp_list_pages() returns links missing the rewrite slug for custom post types.

Traced it back to the Walker_Pager::start_el() using get_page_link(), which doesn't support custom post types.

Attachments (1)

classes.diff (982 bytes) - added by scribu 14 years ago.

Download all attachments as: .zip

Change History (3)

@scribu
14 years ago

#1 @scribu
14 years ago

  • Keywords has-patch commit added
  • Milestone changed from Awaiting Review to 3.1

#2 @markjaquith
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [15587]) Support custom post type links in wp_list_pages(). fixes #14177. props scribu

Note: See TracTickets for help on using tickets.