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: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | needs-refresh needs-docs |
Focuses: | 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 (11)
#3
@
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.
#7
@
8 years ago
- Keywords needs-docs added
This should add a note for where the title filter is documented.
Patch to add a parameter to avoid self-referrent links in wp_list_pages / wp_page_menu