Opened 2 years ago
Last modified 2 years ago
#15811 new enhancement
Self-referrent links should be made avoidable in wp_list_pages / wp_page_menu
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
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:
http://clockinfo.com/posts/168
but it sounds like something that the core Wordpress should support.
Attachments (1)
Change History (6)
lewebmobile — 2 years ago
comment:1
lewebmobile — 2 years ago
- Keywords has-patch added
The issue here breaks down to the joys of caching and cache invalidation.
- 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.

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