Make WordPress Core


Ignore:
Timestamp:
06/10/2010 05:57:30 PM (16 years ago)
Author:
nacin
Message:

Switch to current_theme_supports(menus) internally. Adding theme support for 'nav-menus' is deprecated in favor of register_nav_menu(s). fixes #13825.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r15191 r15193  
    1616require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
    1717
    18 if ( ! current_theme_supports( 'nav-menus' ) && ! current_theme_supports( 'widgets' ) )
     18if ( ! current_theme_supports( 'menus' ) && ! current_theme_supports( 'widgets' ) )
    1919    wp_die( __( 'Your theme does not support navigation menus or widgets.' ) );
    2020
     
    434434wp_initial_nav_menu_meta_boxes();
    435435
    436 if ( ! get_registered_nav_menus() && ! wp_get_nav_menus() )
     436if ( ! current_theme_supports( 'menus' ) && ! wp_get_nav_menus() )
    437437    echo '<div id="message" class="updated"><p>' . __('The current theme does not natively support menus, but you can use the &#8220;Custom Menu&#8221; widget to add any menus you create here to the theme&#8217;s sidebar.') . '</p></div>';
    438438
Note: See TracChangeset for help on using the changeset viewer.