Ticket #20770: 20770.patch
File 20770.patch, 1.2 KB (added by , 13 years ago) |
---|
-
wp-admin/js/widgets.dev.js
215 215 $.post( ajaxurl, data, function(r){ 216 216 var id; 217 217 218 if ( "0" === r ) { 219 $('img.ajax-feedback', widget).parent().parent().html($('<div class="error">' + widgetsL10n.loggedOut + '</div>')); 220 return false; 221 } 222 218 223 if ( del ) { 219 224 if ( !$('input.widget_number', widget).val() ) { 220 225 id = $('input.widget-id', widget).val(); -
wp-includes/script-loader.php
373 373 $scripts->add( 'admin-gallery', "/wp-admin/js/gallery$suffix.js", array( 'jquery-ui-sortable' ) ); 374 374 375 375 $scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), false, 1 ); 376 $scripts->localize( 'admin-widgets', 'widgetsL10n', array( 377 'loggedOut' => __('You are logged out!') 378 )); 376 379 377 380 $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'jquery' ), false, 1 ); 378 381