Make WordPress Core

Ticket #23508: 23508.diff

File 23508.diff, 447 bytes (added by JustinSainton, 13 years ago)
  • wp-includes/nav-menu.php

     
    127127 */
    128128
    129129function get_nav_menu_locations() {
    130         return get_theme_mod( 'nav_menu_locations' );
     130        $locations = get_theme_mod( 'nav_menu_locations' );
     131        return empty( $locations ) || ! is_array( $locations ) ? array() : $locations;
    131132}
    132133
    133134/**