Changeset 31741
- Timestamp:
- 03/12/2015 01:04:44 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/inline-edit-post.js
r31734 r31741 273 273 $(inlineEditPost.what+id).siblings('tr.hidden').addBack().remove(); 274 274 $('#edit-'+id).before(r).remove(); 275 if ( WPEmoji ) { 276 WPEmoji.parse( $( inlineEditPost.what + id ).get( 0 ) ); 277 } 275 window.WPEmoji.parse( $( inlineEditPost.what + id ).get( 0 ) ); 278 276 $(inlineEditPost.what+id).hide().fadeIn(); 279 277 } else { -
trunk/src/wp-admin/js/inline-edit-tax.js
r31734 r31741 118 118 $( '#parent' ).find( 'option[value=' + option_value + ']' ).text( row.find( '.row-title' ).text() ); 119 119 120 if ( WPEmoji ) { 121 WPEmoji.parse( row.get( 0 ) ); 122 } 120 window.WPEmoji.parse( row.get( 0 ) ); 123 121 124 122 row.hide().fadeIn(); -
trunk/src/wp-admin/js/post.js
r31734 r31741 742 742 } 743 743 744 if ( WPEmoji ) { 745 WPEmoji.parse( box.get( 0 ) ); 746 } 744 window.WPEmoji.parse( box.get( 0 ) ); 747 745 748 746 b.html(revert_b); -
trunk/src/wp-admin/js/tags.js
r31734 r31741 50 50 $( '.tags' ).prepend( res.responses[0].supplemental.parents ); // As the parent is not visible, Insert the version with Parent - Child - ThisTerm 51 51 52 if ( WPEmoji ) { 53 WPEmoji.parse( $( '.tags' ).get( 0 ) ); 54 } 52 window.WPEmoji.parse( $( '.tags' ).get( 0 ) ); 55 53 56 54 $('.tags .no-items').remove(); -
trunk/src/wp-includes/script-loader.php
r31733 r31741 448 448 449 449 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 ); 451 451 did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array( 452 452 'noPerm' => __('You do not have permission to do that.'), … … 471 471 ) ); 472 472 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 ); 474 474 did_action( 'init' ) && $scripts->localize( 'post', 'postL10n', array( 475 475 'ok' => __('OK'), … … 523 523 $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'wp-backbone' ), false, 1 ); 524 524 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 ); 526 526 did_action( 'init' ) && $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array( 527 527 'error' => __('Error while saving the changes.'), … … 531 531 ) ); 532 532 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 ); 534 534 did_action( 'init' ) && $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array( 535 535 'error' => __('Error while saving the changes.')
Note: See TracChangeset
for help on using the changeset viewer.