Ticket #14177 (closed defect (bug): fixed)

Opened 23 months ago

Last modified 21 months ago

wp_list_pages doesn't return correct links for custom post types

Reported by: chowmein Owned by:
Priority: normal Milestone: 3.1
Component: Permalinks Version:
Severity: normal Keywords: has-patch commit
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

classes.diff Download (982 bytes) - added by scribu 23 months ago.

Change History

  • Keywords has-patch commit added
  • Milestone changed from Awaiting Review to 3.1
  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.