Ticket #32305: 32305.patch
File 32305.patch, 766 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/wp-emoji.js
70 70 node = node.parentNode; 71 71 } 72 72 73 if ( ! node || ( node.className && node.className.indexOf( 'wp-exclude-emoji' ) !== -1 ) ) { 73 if ( ! node || node.nodeType !== 1 || ( 'ownerSVGElement' in node ) || 74 ( node.className && typeof node.className === 'string' && node.className.indexOf( 'wp-exclude-emoji' ) !== -1 ) ) { 75 74 76 continue; 75 77 } 76 78 77 if ( node.nodeType === 1 &&test( node.textContent ) ) {79 if ( test( node.textContent ) ) { 78 80 parse( node ); 79 81 } 80 82 }