Make WordPress Core

Ticket #31242: 31242.15.patch

File 31242.15.patch, 1.8 KB (added by iseulde, 10 years ago)
  • src/wp-includes/js/twemoji.js

     
    326326    var
    327327      allText = grabAllTextNodes(node, []),
    328328      length = allText.length,
    329       modified = false,
     329      modified,
    330330      fragment,
    331331      subnode,
    332332      text,
     
    339339      variant,
    340340      src;
    341341    while (length--) {
     342      modified = false;
    342343      fragment = document.createDocumentFragment();
    343344      subnode = allText[length];
    344345      text = subnode.nodeValue;
     
    385386        // replace the text node only, leave intact
    386387        // anything else surrounding such text
    387388        subnode.parentNode.replaceChild(fragment, subnode);
    388         modified = false;
    389389      }
    390390    }
    391391    return node;
     
    519519    return r.join(sep || '-');
    520520  }
    521521
    522 }());
     522}());
     523 No newline at end of file
  • src/wp-includes/script-loader.php

     
    424424        $scripts->add( 'media-audiovideo', "/wp-includes/js/media/audio-video$suffix.js", array( 'media-editor' ), false, 1 );
    425425        $scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models', 'media-audiovideo', 'wp-playlist' ), false, 1 );
    426426
    427         $scripts->add( 'twemoji', "/wp-includes/js/twemoji$suffix.js", array(), '1.3.0', 1 );
     427        $scripts->add( 'twemoji', "/wp-includes/js/twemoji$suffix.js", array(), '1.3.1', 1 );
    428428        $scripts->add( 'emoji', "/wp-includes/js/wp-emoji$suffix.js", array( 'twemoji' ), false, 1 );
    429429        did_action( 'init' ) && $scripts->localize( 'emoji', '_wpemojiSettings', array(
    430430                /**