WordPress.org

Make WordPress Core

Changeset 15334


Ignore:
Timestamp:
06/26/10 07:12:15 (4 years ago)
Author:
nacin
Message:

Proper handling of menu nonsupport message. props deanjrobinson, fixes #14098 for trunk.

File:
1 edited

Legend:

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

    r15254 r15334  
    451451 
    452452if ( ! current_theme_supports( 'menus' ) && ! wp_get_nav_menus() ) 
    453     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>'; 
     453    $messages[] = '<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>'; 
    454454 
    455455$help =  '<p>' . __('This feature is new in version 3.0; to use a custom menu in place of your theme&#8217;s default menus, support for this feature must be registered in the theme&#8217;s functions.php file. If your theme does not support the custom menus feature yet (the new default theme, Twenty Ten, does), you can learn about adding support yourself by following the below link.') . '</p>'; 
Note: See TracChangeset for help on using the changeset viewer.