Changeset 33775
- Timestamp:
- 08/28/2015 03:30:55 AM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
-
canonical.php (modified) (1 diff)
-
nav-menu-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r32568 r33775 60 60 } 61 61 62 if ( ! $requested_url) {62 if ( ! $requested_url && isset( $_SERVER['HTTP_HOST'] ) ) { 63 63 // build the URL in the address bar 64 64 $requested_url = is_ssl() ? 'https://' : 'http://'; -
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.