WordPress.org

Make WordPress Core

Changeset 32097


Ignore:
Timestamp:
04/09/2015 11:06:03 AM (4 years ago)
Author:
pento
Message:

Emoji: The emoji JS files should be run through the script_loader_src filter, as they would be if they were registered scripts.

Props peterwilsoncc.

Fixes #31938.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r32096 r32097  
    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            /** This filter is documented in wp-includes/class.wp-scripts.php */
     4145            'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ),
     4146            /** This filter is documented in wp-includes/class.wp-scripts.php */
     4147            'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ),
    41464148        );
    41474149
     
    41544156    } else {
    41554157        $settings['source'] = array(
    4156             'concatemoji' => includes_url( "js/wp-emoji-release.min.js?$version" ),
     4158            /** This filter is documented in wp-includes/class.wp-scripts.php */
     4159            'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ),
    41574160        );
    41584161
Note: See TracChangeset for help on using the changeset viewer.