Make WordPress Core

Ticket #19272: ticket#19272.patch

File ticket#19272.patch, 1.1 KB (added by bhargavbhandari90, 10 years ago)

Check with this. As we applying filter to a string so add

  • src/wp-admin/nav-menus.php

     
    559559        foreach( $messages as $message ) :
    560560                echo $message . "\n";
    561561        endforeach;
    562         ?>
    563         <?php
     562       
     563        $menu_location_text = 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 ) );
     564       
    564565        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>';
     566                echo '<p>' . apply_filters('nav_menu_theme_support_text',$menu_location_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' ) ) ); ?>">