WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#7698 closed defect (bug) (fixed)

wp_page_menu() template tag

Reported by: ryan Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords: dev-reviewed
Focuses: Cc:

Description

Since so many themes include similar code, let's make a menu function that wraps wp_list_pages() and includes some conveniences like adding "Home" to the list.

Attachments (1)

7698.diff (1.3 KB) - added by ryan 7 years ago.

Download all attachments as: .zip

Change History (4)

@ryan7 years ago

comment:1 @westi7 years ago

  • Keywords dev-reviewed added

+1

If this stops theme authors creating a menu system with hardcoded links to # that would be even better.

It irks me every time I see them in someones site header.

comment:2 @ryan7 years ago

(In [8848]) wp_page_menu(). see #7698

comment:3 @ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.