2006-11-18 18:12:39 -05:00
|
|
|
<?php
|
2008-08-11 16:26:31 -04:00
|
|
|
/**
|
|
|
|
* Handle default dashboard widgets options AJAX.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
2011-06-10 02:31:39 -04:00
|
|
|
define('DOING_AJAX', true);
|
|
|
|
|
2008-08-11 16:26:31 -04:00
|
|
|
/** Load WordPress Bootstrap */
|
2010-04-18 02:14:45 -04:00
|
|
|
require_once( './admin.php' );
|
2008-08-11 16:26:31 -04:00
|
|
|
|
|
|
|
/** Load WordPress Administration Dashboard API */
|
2010-10-07 15:34:18 -04:00
|
|
|
require(ABSPATH . 'wp-admin/includes/dashboard.php' );
|
2008-08-11 16:26:31 -04:00
|
|
|
|
2010-01-27 09:02:16 -05:00
|
|
|
@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
|
2010-02-25 16:41:33 -05:00
|
|
|
send_nosniff_header();
|
2007-02-06 15:12:53 -05:00
|
|
|
|
2008-02-02 02:57:51 -05:00
|
|
|
switch ( $_GET['jax'] ) {
|
2007-08-17 07:08:00 -04:00
|
|
|
|
2008-10-08 19:32:34 -04:00
|
|
|
case 'dashboard_incoming_links' :
|
2011-06-10 02:31:39 -04:00
|
|
|
wp_dashboard_incoming_links();
|
2008-02-21 16:20:09 -05:00
|
|
|
break;
|
2006-11-18 18:12:39 -05:00
|
|
|
|
2008-10-08 19:32:34 -04:00
|
|
|
case 'dashboard_primary' :
|
2011-06-10 02:31:39 -04:00
|
|
|
wp_dashboard_primary();
|
2008-02-21 16:20:09 -05:00
|
|
|
break;
|
2006-11-18 18:12:39 -05:00
|
|
|
|
2008-10-08 19:32:34 -04:00
|
|
|
case 'dashboard_secondary' :
|
2011-06-10 02:31:39 -04:00
|
|
|
wp_dashboard_secondary();
|
2008-02-21 16:20:09 -05:00
|
|
|
break;
|
2008-02-19 22:23:34 -05:00
|
|
|
|
2008-10-08 19:32:34 -04:00
|
|
|
case 'dashboard_plugins' :
|
2011-06-10 02:31:39 -04:00
|
|
|
wp_dashboard_plugins();
|
2008-02-21 16:20:09 -05:00
|
|
|
break;
|
2010-05-25 22:42:15 -04:00
|
|
|
|
2006-11-18 18:12:39 -05:00
|
|
|
}
|
|
|
|
|
2008-08-11 16:26:31 -04:00
|
|
|
?>
|