Emoji: update Twemoji to 1.3.1. Props iseulde. See #31242.
git-svn-id: https://develop.svn.wordpress.org/trunk@31766 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2650be6c74
commit
7fbb0e091a
|
@ -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 || '-');
|
||||
}
|
||||
|
||||
}());
|
||||
}());
|
|
@ -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(
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue