WordPress.org

Make WordPress Core

Ticket #17004: 17004.diff

File 17004.diff, 720 bytes (added by andrewryno, 3 years ago)

Convert single quotes to HTML entity

  • wp-admin/js/user-profile.dev.js

     
    4545                }); 
    4646                $('#first_name, #last_name').blur(function(){ 
    4747                        var select = $('#display_name'); 
    48                         var first = $('#first_name').val(), last = $('#last_name').val(); 
     48                        var first = $('#first_name').val(), last = $('#last_name').val().replace(/\'/g, "'"); 
    4949                        var sel = select.children('option:selected').attr('id'); 
    5050                        $('#display_firstname, #display_lastname, #display_firstlast, #display_lastfirst').remove(); 
    5151                        if ( first && ! select.children('option[value=' + first + ']').length )