Opened 15 years ago
Closed 15 years ago
#12808 closed defect (bug) (fixed)
Remove _self attribute in nav menu links
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Menus | Keywords: | |
Focuses: | Cc: |
Description
The new menu system in WP 3.0 is adding target attributes to links. These are old legacy attributes and shouldn't be used anymore. It also causes validation errors unless using a transitional doctype.
eg:
<a target="_self" href="http://localhost/services/">Services</a>
should be just:
<a href="http://localhost/services/">Services</a>
This bug is present in the latest menu system in trunk. I'm not sure how to find the exact version number to provide here, but it was downloaded today (2nd April 2010).
Hopefully I've filed this bug report correctly. I'm somewhat of a trac n00b :p
Change History (5)
#2
@
15 years ago
- Component changed from General to Menus
- Milestone changed from Unassigned to 3.0
- Owner set to ryan
Note: See
TracTickets for help on using
tickets.
Yeah, we allow the option of opening in a new window. But we can omit target="_self" when that option isn't chosen.