Make WordPress Core

Ticket #19272: refreshed-nav_menu_theme_support_text.diff

File refreshed-nav_menu_theme_support_text.diff, 996 bytes (added by horike, 10 years ago)
  • wp-admin/nav-menus.php

     
    562562        ?>
    563563        <?php
    564564        if ( $locations_screen ) :
    565                 echo '<p>' . 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>';
     565                $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 );
     566                echo '<p>' . sprintf( $text , number_format_i18n($num_locations) ) . '</p>';
    566567        ?>
    567568        <div id="menu-locations-wrap">
    568569                <form method="post" action="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>">