Make WordPress Core


Ignore:
Timestamp:
03/12/2015 01:04:44 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Fix JSHint errors in [31734] and add missing dependencies.

props iseulde.
fixes #31328.

File:
1 edited

Legend:

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

    r31733 r31741  
    448448
    449449    if ( is_admin() ) {
    450         $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array('jquery', 'wp-ajax-response'), false, 1 );
     450        $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array( 'jquery', 'wp-ajax-response', 'emoji' ), false, 1 );
    451451        did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array(
    452452            'noPerm' => __('You do not have permission to do that.'),
     
    471471        ) );
    472472
    473         $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box' ), false, 1 );
     473        $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box', 'emoji' ), false, 1 );
    474474        did_action( 'init' ) && $scripts->localize( 'post', 'postL10n', array(
    475475            'ok' => __('OK'),
     
    523523        $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'wp-backbone' ), false, 1 );
    524524
    525         $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), false, 1 );
     525        $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest', 'emoji' ), false, 1 );
    526526        did_action( 'init' ) && $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
    527527            'error' => __('Error while saving the changes.'),
     
    531531        ) );
    532532
    533         $scripts->add( 'inline-edit-tax', "/wp-admin/js/inline-edit-tax$suffix.js", array( 'jquery' ), false, 1 );
     533        $scripts->add( 'inline-edit-tax', "/wp-admin/js/inline-edit-tax$suffix.js", array( 'jquery', 'emoji' ), false, 1 );
    534534        did_action( 'init' ) && $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
    535535            'error' => __('Error while saving the changes.')
Note: See TracChangeset for help on using the changeset viewer.