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