Make WordPress Core


Ignore:
Timestamp:
03/12/2015 03:16:51 AM (10 years ago)
Author:
nacin
Message:

Emoji JS cleanup.

  • Filename: emoji.js => wp-emoji.js
  • Script handle: emoji => wp-emoji
  • Object: WPEmoji => wp.emoji
  • Script settings: EmojiSettings => _wpemojiSettings
  • Setting key: base_url => baseUrl
  • Remove executable bit from files

see #31242.

File:
1 edited

Legend:

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

    r31741 r31744  
    426426
    427427    $scripts->add( 'twemoji', "/wp-includes/js/twemoji$suffix.js", array(), false, 1 );
    428     $scripts->add( 'emoji', "/wp-includes/js/emoji$suffix.js", array( 'twemoji' ), false, 1 );
    429     did_action( 'init' ) && $scripts->localize( 'emoji', 'EmojiSettings', array(
     428    $scripts->add( 'emoji', "/wp-includes/js/wp-emoji$suffix.js", array( 'twemoji' ), false, 1 );
     429    did_action( 'init' ) && $scripts->localize( 'wp-emoji', '_wpemojiSettings', array(
    430430        /**
    431431         * Filter the URL where emoji images are hosted.
     
    435435         * @param string The emoji base URL.
    436436         */
    437         'base_url' => apply_filters( 'emoji_url', '//s0.wp.com/wp-content/mu-plugins/emoji/twemoji/72x72/' ),
     437        'baseUrl' => apply_filters( 'emoji_url', '//s0.wp.com/wp-content/mu-plugins/emoji/twemoji/72x72/' ),
    438438        /**
    439439         * Filter the extension of the emoji files.
Note: See TracChangeset for help on using the changeset viewer.