Make WordPress Core

Ticket #31391: 31391.patch

File 31391.patch, 480 bytes (added by csschris, 9 years ago)
  • src/wp-admin/nav-menus.php

     
    460460
    461461// Retrieve menu locations.
    462462if ( current_theme_supports( 'menus' ) ) {
    463         $locations = get_registered_nav_menus();
     463        $locations = apply_filters( 'wp_nav_theme_location_list', get_registered_nav_menus() );
    464464        $menu_locations = get_nav_menu_locations();
    465465}
    466466