WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#14177 closed defect (bug) (fixed)

wp_list_pages doesn't return correct links for custom post types

Reported by: 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 4 years ago.

Download all attachments as: .zip

Change History (3)

scribu4 years ago

comment:1 scribu4 years ago

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

comment:2 markjaquith4 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.