WordPress.org

Make WordPress Core

Changeset 23941


Ignore:
Timestamp:
04/09/2013 08:50:45 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Use correct variable. fixes #24014. see #23119.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu.php

    r23897 r23941  
    193193    $locations = get_theme_mod( 'nav_menu_locations' );
    194194    foreach ( (array) $locations as $location => $menu_id ) {
    195         if ( $menu_id == $nav_menu_id )
     195        if ( $menu_id == $menu->term_id )
    196196            $locations[ $location ] = 0;
    197197    }
Note: See TracChangeset for help on using the changeset viewer.