WordPress.org

Make WordPress Core

Ticket #31938: 31938.1.patch

File 31938.1.patch, 988 bytes (added by peterwilsoncc, 5 years ago)
  • src/wp-includes/formatting.php

    diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
    index 3fc538a..b1086b7 100644
    a b function print_emoji_detection_script() { 
    41414141
    41424142        if ( SCRIPT_DEBUG ) {
    41434143                $settings['source'] = array(
    4144                         'wpemoji' => includes_url( "js/wp-emoji.js?$version" ),
    4145                         'twemoji' => includes_url( "js/twemoji.js?$version" ),
     4144                        'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ),
     4145                        'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ),
    41464146                );
    41474147
    41484148                ?>
    function print_emoji_detection_script() { 
    41534153                <?php
    41544154        } else {
    41554155                $settings['source'] = array(
    4156                         'concatemoji' => includes_url( "js/wp-emoji-release.min.js?$version" ),
     4156                        'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ),
    41574157                );
    41584158
    41594159                /*