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

Opened 3 years ago

Last modified 3 years ago

wp_page_menu() template tag

Reported by: ryan Owned by: anonymous
Priority: normal Milestone: 2.7
Component: General Version:
Severity: normal Keywords: dev-reviewed
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

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

Change History

ryan3 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   ryan3 years ago

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

comment:3   ryan3 years ago

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