#13977 closed defect (bug) (fixed)
home link current_page nav menu defect on IIS
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.0.1 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Menus | Keywords: | menu highlight current_page_item has-patch |
| Focuses: | Cc: |
Description
I'm using IIS and fresh WordPress 3.0 without any URL Rewrite software and I found a defect in wp-includes/nav-menu-template.php (line 365) which prevents home link highlight.
$current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
...
if ( untrailingslashit($current_url) == home_url() ) {
$classes[] = 'menu-item-home';
...
$current_url is always http(s)://mysite.com/index.php on the front page and my home_url() is always http(s)://mysite.com so both variables never be equal.
Attachments (1)
Change History (10)
#2
@
16 years ago
- Keywords has-patch added
Does recognize-home-link-with-index.13977.diff fix it for you?
#3
@
16 years ago
- Resolution set to fixed
- Status changed from new to closed
Yes, now it works, thank you!
#5
@
16 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
It's not "fixed" until the patch gets committed to WordPress trunk.
Note: See
TracTickets for help on using
tickets.
Related #13994