Ticket #31328: 31328.3.patch
File 31328.3.patch, 4.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/inline-edit-post.js
272 272 if ( -1 !== r.indexOf( '<tr' ) ) { 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 && window.WPEmoji.parse( $( inlineEditPost.what + id ).get( 0 ) ); 278 276 $(inlineEditPost.what+id).hide().fadeIn(); 279 277 } else { 280 278 r = r.replace( /<.[^<>]*?>/g, '' ); -
src/wp-admin/js/inline-edit-tax.js
117 117 // Update the value in the Parent dropdown. 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 && window.WPEmoji.parse( row.get( 0 ) ); 123 121 124 122 row.hide().fadeIn(); 125 123 } else { -
src/wp-admin/js/post.js
741 741 }); 742 742 } 743 743 744 if ( WPEmoji ) { 745 WPEmoji.parse( box.get( 0 ) ); 746 } 744 window.WPEmoji && window.WPEmoji.parse( box.get( 0 ) ); 747 745 748 746 b.html(revert_b); 749 747 real_slug.val(new_slug); -
src/wp-admin/js/tags.js
49 49 else 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 && window.WPEmoji.parse( $( '.tags' ).get( 0 ) ); 55 53 56 54 $('.tags .no-items').remove(); 57 55 -
src/wp-includes/script-loader.php
447 447 $scripts->enqueue( 'emoji' ); 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.'), 453 453 'broken' => __('An unidentified error has occurred.') … … 470 470 'tagDelimiter' => _x( ',', 'tag delimiter' ), 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'), 476 476 'cancel' => __('Cancel'), … … 522 522 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.'), 528 528 'ntdeltitle' => __('Remove From Bulk Edit'), … … 530 530 'comma' => trim( _x( ',', 'tag delimiter' ) ), 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.') 536 536 ) );