Ticket #32221: 32221.patch
| File 32221.patch, 1.2 KB (added by , 11 years ago) |
|---|
-
wp-includes/nav-menu-template.php
545 545 546 546 // if the menu item corresponds to the currently-requested URL 547 547 } elseif ( 'custom' == $menu_item->object ) { 548 $_root_relative_current = untrailingslashit( $_SERVER['REQUEST_URI'] ); 548 549 // Use strtok() to omit any URL parameters when comparing 550 $_root_relative_current = untrailingslashit( strtok( $_SERVER['REQUEST_URI'], '?' ) ); 549 551 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_root_relative_current ); 550 552 $raw_item_url = strpos( $menu_item->url, '#' ) ? substr( $menu_item->url, 0, strpos( $menu_item->url, '#' ) ) : $menu_item->url; 551 $item_url = untrailingslashit( $raw_item_url);553 $item_url = set_url_scheme( untrailingslashit( strtok( $raw_item_url, '?' ) ) ); 552 554 $_indexless_current = untrailingslashit( preg_replace( '/' . preg_quote( $wp_rewrite->index, '/' ) . '$/', '', $current_url ) ); 553 555 554 556 if ( $raw_item_url && in_array( $item_url, array( $current_url, $_indexless_current, $_root_relative_current ) ) ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)