WordPress.org

Make WordPress Core

Ticket #12338: 12338.patch

File 12338.patch, 885 bytes (added by junsuijin, 4 years ago)

changes e to

  • wp-admin/custom-navigation.php

     
    9696                if ( $insert_menu_name != '' ) { 
    9797                        $existing_term = get_term_by( 'name', $insert_menu_name, 'nav_menu' ); 
    9898                        if ( $existing_term ) { 
    99                                 $messagesdiv = '<div id="message" class="error fade below-h2"><p>' . esc_html( sprintf( e__('A menu named "%s" already exists; please try another name.'), $existing_term->name ) ) . '</p></div>'; 
     99                                $messagesdiv = '<div id="message" class="error fade below-h2"><p>' . esc_html( sprintf( __('A menu named "%s" already exists; please try another name.'), $existing_term->name ) ) . '</p></div>'; 
    100100                        } else { 
    101101                                $term = wp_insert_term( $insert_menu_name, 'nav_menu' ); 
    102102                                if ( !is_wp_error($term) ) {