Changeset 33775 for trunk/src/wp-includes/nav-menu-template.php
- Timestamp:
- 08/28/2015 03:30:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu-template.php
r33585 r33775 554 554 555 555 // if the menu item corresponds to the currently-requested URL 556 } elseif ( 'custom' == $menu_item->object ) {556 } elseif ( 'custom' == $menu_item->object && isset( $_SERVER['HTTP_HOST'] ) ) { 557 557 $_root_relative_current = untrailingslashit( $_SERVER['REQUEST_URI'] ); 558 558 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_root_relative_current );
Note: See TracChangeset
for help on using the changeset viewer.