#18144 closed enhancement (duplicate)
Update wp_nav_menu to support relative URLs
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 3.2.1 |
| Severity: | minor | Keywords: | has-patch |
| Cc: |
Description
in wp-includes/nav-menu-template.php add:
363: $relative_url = untrailingslashit($_SERVER['REQUEST_URI']);
modify the in_array check to add that as an option
if ( in_array( $item_url, array( $current_url, $_indexless_current, $relative_url ) ) )
I encourage clients to use relative url's so they can test with navigation across environments regardless of domains.
Attachments (1)
Change History (6)
SergeyBiryukov — 22 months ago
comment:2
SergeyBiryukov — 22 months ago
- Keywords has-patch added; needs-patch removed
comment:3
WraithKenny — 22 months ago
duplicate #15954
comment:4
WraithKenny — 22 months ago
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

No issues here.