Emoji: update Twemoji to 1.3.1. Props iseulde. See #31242.

Built from https://develop.svn.wordpress.org/trunk@31766


git-svn-id: http://core.svn.wordpress.org/trunk@31746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-03-13 17:20:26 +00:00
parent 805c530cf0
commit 69c08b1b65
3 changed files with 5 additions and 5 deletions

View File

@ -326,7 +326,7 @@ var twemoji = (function (
var
allText = grabAllTextNodes(node, []),
length = allText.length,
modified = false,
modified,
fragment,
subnode,
text,
@ -339,6 +339,7 @@ var twemoji = (function (
variant,
src;
while (length--) {
modified = false;
fragment = document.createDocumentFragment();
subnode = allText[length];
text = subnode.nodeValue;
@ -385,7 +386,6 @@ var twemoji = (function (
// replace the text node only, leave intact
// anything else surrounding such text
subnode.parentNode.replaceChild(fragment, subnode);
modified = false;
}
}
return node;
@ -519,4 +519,4 @@ var twemoji = (function (
return r.join(sep || '-');
}
}());
}());

File diff suppressed because one or more lines are too long

View File

@ -424,7 +424,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'media-audiovideo', "/wp-includes/js/media/audio-video$suffix.js", array( 'media-editor' ), false, 1 );
$scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models', 'media-audiovideo', 'wp-playlist' ), false, 1 );
$scripts->add( 'twemoji', "/wp-includes/js/twemoji$suffix.js", array(), '1.3.0', 1 );
$scripts->add( 'twemoji', "/wp-includes/js/twemoji$suffix.js", array(), '1.3.1', 1 );
$scripts->add( 'emoji', "/wp-includes/js/wp-emoji$suffix.js", array( 'twemoji' ), false, 1 );
did_action( 'init' ) && $scripts->localize( 'emoji', '_wpemojiSettings', array(
/**