WordPress.org

Make WordPress Core

Changeset 31879


Ignore:
Timestamp:
03/25/2015 01:42:25 AM (6 years ago)
Author:
pento
Message:

Emoji: Revert [31877], and print the emoji shim and styles during admin_print_scripts and admin_print_styles, instead. This is a few milliseconds slower, but easier to reuse in Press This, and any other code that uses admin scripts and styles, without using admin-header.php.

See #31701.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-header.php

    r31877 r31879  
    5050<title><?php echo $admin_title; ?></title>
    5151<?php
    52 
    53 print_emoji_detection_script();
    54 print_emoji_styles();
    5552
    5653wp_enqueue_style( 'colors' );
  • trunk/src/wp-includes/default-filters.php

    r31875 r31879  
    253253add_action( 'set_comment_cookies',        'wp_set_comment_cookies',                  10, 2 );
    254254add_action( 'sanitize_comment_cookies',   'sanitize_comment_cookies'                       );
     255add_action( 'admin_print_scripts',        'print_emoji_detection_script'                   );
    255256add_action( 'admin_print_scripts',        'print_head_scripts',                      20    );
    256257add_action( 'admin_print_footer_scripts', '_wp_footer_scripts'                             );
     258add_action( 'admin_print_styles',         'print_emoji_styles'                             );
    257259add_action( 'admin_print_styles',         'print_admin_styles',                      20    );
    258260add_action( 'init',                       'smilies_init',                             5    );
Note: See TracChangeset for help on using the changeset viewer.