Remove index-extra.php. Move dashboard widget XHR callbacks to ajax-actions.php. fixes #20242.

git-svn-id: https://develop.svn.wordpress.org/trunk@20190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2012-03-15 13:20:00 +00:00
parent c5ebfc0584
commit 681c6ea428
7 changed files with 28 additions and 65 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ jQuery(document).ready( function($) {
if ( e.length ) {
p = e.parent();
setTimeout( function(){
p.load( ajaxurl.replace( '/admin-ajax.php', '' ) + '/index-extra.php?jax=' + id, '', function() {
p.load( ajaxurl + '?action=dashboard-widgets&widget=' + id, '', function() {
p.hide().slideDown('normal', function(){
$(this).css('display', '');
});