Ticket #31242: 31242.7.patch
File 31242.7.patch, 907 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/wp-emoji.js
52 52 * @since 4.2.0 53 53 */ 54 54 load: function() { 55 emoji.parse( document.body ); 56 55 57 if ( MutationObserver ) { 56 58 new MutationObserver( function( mutationRecords ) { 57 59 var i = mutationRecords.length, … … 80 82 subtree: true 81 83 } ); 82 84 } 83 84 emoji.parse( document.body );85 85 }, 86 86 87 87 /** … … 172 172 return false; 173 173 } 174 174 175 if ( emoji.parseFlags && ! emoji.parseAllEmoji && ! icon.match( /^1f1(e[6-9a-f]|f[1-9a-f])-1f1(e[6-9a-f]|f[1-9a-f])$/ ) ) { 175 if ( 176 emoji.parseFlags && ! emoji.parseAllEmoji && 177 ! /^1f1(?:e[6-9a-f]|f[1-9a-f])-1f1(?:e[6-9a-f]|f[1-9a-f])$/.test( icon ) 178 ) { 176 179 return false; 177 180 } 178 181