diff --git a/src/wp-includes/js/tinymce/plugins/wpemoji/plugin.js b/src/wp-includes/js/tinymce/plugins/wpemoji/plugin.js index ed50a9c035..4010cadd84 100644 --- a/src/wp-includes/js/tinymce/plugins/wpemoji/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpemoji/plugin.js @@ -23,7 +23,7 @@ typing = event.type === 'keydown'; } ); - editor.on( 'input', function( event ) { + editor.on( 'input', function() { if ( typing ) { return; } @@ -52,7 +52,7 @@ if ( twemoji.test( node.textContent || node.innerText ) ) { replaceEmoji( node ); - // In IE all content in the editor is left selected aftrer wp.emoji.parse()... + // In IE all content in the editor is left selected after wp.emoji.parse()... // Collapse the selection to the beginning. if ( tinymce.Env.ie && tinymce.Env.ie < 9 && event.load && node && node.nodeName === 'BODY' ) { selection.collapse( true ); @@ -60,7 +60,7 @@ } } ); - // Convert Twemoji compatible pasted emoji repacement images into our format. + // Convert Twemoji compatible pasted emoji replacement images into our format. editor.on( 'PastePostProcess', function( event ) { if ( twemoji ) { tinymce.each( editor.dom.$( 'img.emoji', event.node ), function( image ) { diff --git a/src/wp-includes/js/wp-emoji.js b/src/wp-includes/js/wp-emoji.js index c3b275c8bd..408cdf2d18 100644 --- a/src/wp-includes/js/wp-emoji.js +++ b/src/wp-includes/js/wp-emoji.js @@ -88,8 +88,8 @@ if ( type === 'flag' ) { /* * This works because the image will be one of three things: - * - Two empty squares, if the browser doen't render emoji - * - Two squares with 'G' and 'B' in them, if the browser doen't render flag emoji + * - Two empty squares, if the browser doesn't render emoji + * - Two squares with 'G' and 'B' in them, if the browser doesn't render flag emoji * - The British flag * * The first two will encode to small images (1-2KB data URLs), the third will encode