Changeset 40658
- Timestamp:
- 05/12/2017 08:34:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu-template.php
r40062 r40658 398 398 } elseif ( 'custom' == $menu_item->object && isset( $_SERVER['HTTP_HOST'] ) ) { 399 399 $_root_relative_current = untrailingslashit( $_SERVER['REQUEST_URI'] ); 400 401 //if it is the customize page then it will strips the query var off the url before entering the comparison block. 402 if ( is_customize_preview() ) { 403 $_root_relative_current = strtok( untrailingslashit( $_SERVER['REQUEST_URI'] ), '?' ); 404 } 400 405 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_root_relative_current ); 401 406 $raw_item_url = strpos( $menu_item->url, '#' ) ? substr( $menu_item->url, 0, strpos( $menu_item->url, '#' ) ) : $menu_item->url;
Note: See TracChangeset
for help on using the changeset viewer.