WordPress.org

Make WordPress Core

Ticket #19272: nav_menu_theme_support_text.patch

File nav_menu_theme_support_text.patch, 939 bytes (added by wpsmith, 2 years ago)
  • nav-menu.php

     
    489489        $menu_locations = get_nav_menu_locations(); 
    490490        $num_locations = count( array_keys($locations) ); 
    491491 
    492         echo '<p class="howto">' . sprintf( _n('Your theme supports %s menu. Select which menu you would like to use.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n($num_locations) ) . '</p>'; 
     492        $text = apply_filters( 'nav_menu_theme_support_text' , _n('Your theme supports %s menu. Select which menu you would like to use.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ) , $num_locations ); 
     493        echo '<p class="howto">' . sprintf( $text , number_format_i18n($num_locations) ) . '</p>'; 
    493494 
    494495        foreach ( $locations as $location => $description ) { 
    495496                ?>