[wp-trac] [WordPress Trac] #32221: Custom nav menu items are scheme-sensitive

WordPress Trac noreply at wordpress.org
Fri May 1 09:09:11 UTC 2015


#32221: Custom nav menu items are scheme-sensitive
--------------------------+----------------------------------------
 Reporter:  dd32          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Menus         |    Version:
 Severity:  normal        |   Keywords:  good-first-bug needs-patch
  Focuses:                |
--------------------------+----------------------------------------
 If you have a website that's available over both https and http, adding a
 custom URL entry as HTTP will cause it not to be marked as `current-menu-
 item` when visited over HTTPS (and vice versa)

 At present, custom nav menu's are only marked as present when one of the
 following is valid:
 1. Exact match (`http://example.com/page/`
 1. Match without trailing slash ( `http://example.com/page`
 1. Match with path only ( `/page/` )

 It seems to me, that both the first and second instances should apply
 `set_url_scheme()` to both forms it's comparing (or use some other
 comparison method that ignores the protocol).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32221>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list