WordPress.org

Make WordPress Core

Ticket #23119: 23119.3.diff

File 23119.3.diff, 552 bytes (added by jkudish, 14 months ago)

fixes php notices

  • wp-admin/nav-menus.php

     
    264264                // Get existing menu locations assignments 
    265265                $locations = get_registered_nav_menus(); 
    266266                $menu_locations = get_nav_menu_locations(); 
     267                if ( empty( $menu_locations ) || ! is_array( $menu_locations ) ) 
     268                        $menu_locations = array(); 
    267269 
    268270                // Remove menu locations that have been unchecked 
    269271                foreach ( $locations as $location => $description ) {