Changeset 20190
- Timestamp:
- 03/15/2012 01:20:00 PM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 deleted
- 4 edited
-
admin-ajax.php (modified) (1 diff)
-
includes/ajax-actions.php (modified) (1 diff)
-
includes/update-core.php (modified) (1 diff)
-
index-extra.php (deleted)
-
js/dashboard.dev.js (modified) (1 diff)
-
network/index-extra.php (deleted)
-
user/index-extra.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r20179 r20190 35 35 do_action( 'admin_init' ); 36 36 37 $core_actions_get = array( 'fetch-list', 'ajax-tag-search', 'wp-compression-test', 'imgedit-preview', 'oembed-cache', 'autocomplete-user' ); 37 $core_actions_get = array( 38 'fetch-list', 'ajax-tag-search', 'wp-compression-test', 'imgedit-preview', 'oembed-cache', 39 'autocomplete-user', 'dashboard-widgets', 40 ); 38 41 39 42 $core_actions_post = array( -
trunk/wp-admin/includes/ajax-actions.php
r20179 r20190 185 185 186 186 wp_die( json_encode( $return ) ); 187 } 188 189 function wp_ajax_dashboard_widgets() { 190 require ABSPATH . 'wp-admin/includes/dashboard.php'; 191 192 switch ( $_GET['widget'] ) { 193 case 'dashboard_incoming_links' : 194 wp_dashboard_incoming_links(); 195 break; 196 case 'dashboard_primary' : 197 wp_dashboard_primary(); 198 break; 199 case 'dashboard_secondary' : 200 wp_dashboard_secondary(); 201 break; 202 case 'dashboard_plugins' : 203 wp_dashboard_plugins(); 204 break; 205 } 206 wp_die(); 187 207 } 188 208 -
trunk/wp-admin/includes/update-core.php
r19940 r20190 328 328 // 3.4 329 329 'wp-admin/images/logo-login.png', 330 'wp-admin/index-extra.php', 331 'wp-admin/network/index-extra.php', 332 'wp-admin/user/index-extra.php', 330 333 ); 331 334 -
trunk/wp-admin/js/dashboard.dev.js
r19684 r20190 42 42 p = e.parent(); 43 43 setTimeout( function(){ 44 p.load( ajaxurl .replace( '/admin-ajax.php', '' ) + '/index-extra.php?jax=' + id, '', function() {44 p.load( ajaxurl + '?action=dashboard-widgets&widget=' + id, '', function() { 45 45 p.hide().slideDown('normal', function(){ 46 46 $(this).css('display', '');
Note: See TracChangeset
for help on using the changeset viewer.