#13977 closed defect (bug) (fixed)
home link current_page nav menu defect on IIS
| Reported by: | andddd | Owned by: | filosofo |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0.1 |
| Component: | Menus | Version: | 3.0 |
| Severity: | normal | Keywords: | menu highlight current_page_item has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related #13994