Changeset 48347
- Timestamp:
- 07/06/2020 07:45:04 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/tags.js
r48104 r48347 8 8 */ 9 9 10 /* global ajaxurl, wpAjax, tagsl10n,showNotice, validateForm */10 /* global ajaxurl, wpAjax, showNotice, validateForm */ 11 11 12 12 jQuery(document).ready(function($) { … … 56 56 57 57 } else if ( '-1' == r ) { 58 $('#ajax-response').empty().append('<div class="error"><p>' + tagsl10n.noPerm+ '</p></div>');58 $('#ajax-response').empty().append('<div class="error"><p>' + wp.i18n.__( 'Sorry, you are not allowed to do that.' ) + '</p></div>'); 59 59 tr.children().css('backgroundColor', ''); 60 60 61 61 } else { 62 $('#ajax-response').empty().append('<div class="error"><p>' + tagsl10n.broken+ '</p></div>');62 $('#ajax-response').empty().append('<div class="error"><p>' + wp.i18n.__( 'Something went wrong.' ) + '</p></div>'); 63 63 tr.children().css('backgroundColor', ''); 64 64 } -
trunk/src/wp-includes/script-loader.php
r48346 r48347 1194 1194 if ( is_admin() ) { 1195 1195 $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array( 'jquery', 'wp-ajax-response' ), false, 1 ); 1196 did_action( 'init' ) && $scripts->localize( 1197 'admin-tags', 1198 'tagsl10n', 1199 array( 1200 'noPerm' => __( 'Sorry, you are not allowed to do that.' ), 1201 'broken' => __( 'Something went wrong.' ), 1202 ) 1203 ); 1196 $scripts->set_translations( 'admin-tags' ); 1204 1197 1205 1198 $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array( 'wp-lists', 'quicktags', 'jquery-query' ), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.