Make WordPress Core

Opened 12 years ago

Closed 7 years ago

#15811 closed enhancement (wontfix)

Self-referrent links should be made avoidable in wp_list_pages / wp_page_menu

Reported by: lewebmobile's profile lewebmobile Owned by: morganestes's profile morganestes
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: needs-refresh needs-docs
Focuses: Cc:


Having a page that links to itself is a well-recognized usability and accessibility problem.

Currently, wp_list_pages and wp_page_menu don't offer an option to avoid self-referrent links.

The patch attached to this report adds a "self_link" parameter to these two functions (defaulting to the current behaviour); when that parameter is set to false, the markup produced by these functions don't include a link to the current page.

Someone proposed a plugin to that effect:
but it sounds like something that the core Wordpress should support.

Attachments (1)

patch (1.8 KB) - added by lewebmobile 12 years ago.
Patch to add a parameter to avoid self-referrent links in wp_list_pages / wp_page_menu

Download all attachments as: .zip

Change History (11)

12 years ago

Patch to add a parameter to avoid self-referrent links in wp_list_pages / wp_page_menu

#1 @lewebmobile
12 years ago

  • Keywords has-patch added

#2 @Denis-de-Bernardy
12 years ago

The issue here breaks down to the joys of caching and cache invalidation.

#3 @jane
12 years ago

  • Component changed from General to Gallery

Usability-wise, yes, it drives me nuts when you're on a Page and the nav item for it is still linked, as it's counter to how most web sites work.

#4 @jane
12 years ago

  • Component changed from Gallery to General

#5 @nacin
12 years ago

  • Milestone changed from Awaiting Review to Future Release

#6 @chriscct7
9 years ago

  • Keywords needs-refresh added; has-patch removed

#7 @chriscct7
8 years ago

  • Keywords needs-docs added

This should add a note for where the title filter is documented.

This ticket was mentioned in Slack in #docs by morganestes. View the logs.

7 years ago

#9 @morganestes
7 years ago

  • Owner set to morganestes
  • Status changed from new to assigned

#10 @johnbillion
7 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from assigned to closed

Closing based on lack of interest in 6 years. Re-open if anyone's interested.

Note: See TracTickets for help on using tickets.