Changeset 31756
- Timestamp:
- 03/12/2015 07:52:13 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/twemoji.js
r31744 r31756 371 371 } 372 372 fragment.appendChild(img || createText(alt)); 373 img = null;374 373 } 375 374 // is there actually anything to replace in here ? 376 if (0 < i) { 375 if (img) { 376 img = null; 377 377 // any text left to be added ? 378 378 if (i < text.length) { -
trunk/src/wp-includes/js/wp-emoji.js
r31750 r31756 2 2 3 3 ( function( window, wp, twemoji, settings ) { 4 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; 5 4 6 var emoji = { 5 7 /** … … 69 71 } 70 72 71 if ( node .nodeType === 1 ) {73 if ( node && node.nodeType === 1 ) { 72 74 emoji.parse( node ); 73 75 } … … 96 98 context = canvas.getContext && canvas.getContext( '2d' ); 97 99 98 if ( ! context .fillText ) {100 if ( ! context || ! context.fillText ) { 99 101 return false; 100 102 } … … 124 126 context = canvas.getContext && canvas.getContext( '2d' ); 125 127 126 if ( ! context .fillText ) {128 if ( ! context || ! context.fillText ) { 127 129 return false; 128 130 } -
trunk/src/wp-includes/script-loader.php
r31755 r31756 435 435 * @param string The emoji base URL. 436 436 */ 437 'baseUrl' => apply_filters( 'emoji_url', '//s0.wp.com/wp-content/mu-plugins/emoji/twemoji/72x72 /' ),437 'baseUrl' => apply_filters( 'emoji_url', '//s0.wp.com/wp-content/mu-plugins/emoji/twemoji/72x72' ), 438 438 /** 439 439 * Filter the extension of the emoji files.
Note: See TracChangeset
for help on using the changeset viewer.