638a41bf49
git-svn-id: https://develop.svn.wordpress.org/trunk@9103 602fd350-edb4-49c9-b593-d223f7449a82
40 lines
797 B
PHP
40 lines
797 B
PHP
<?php
|
|
/**
|
|
* Handle default dashboard widgets options AJAX.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Administration
|
|
*/
|
|
|
|
/** Load WordPress Bootstrap */
|
|
require_once('admin.php');
|
|
|
|
/** Load WordPress Administration Dashboard API */
|
|
require( 'includes/dashboard.php' );
|
|
|
|
/** Load Magpie RSS API or custom RSS API */
|
|
require_once (ABSPATH . WPINC . '/rss.php');
|
|
|
|
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
|
|
|
switch ( $_GET['jax'] ) {
|
|
|
|
case 'dashboard_incoming_links' :
|
|
wp_dashboard_incoming_links_output();
|
|
break;
|
|
|
|
case 'dashboard_primary' :
|
|
wp_dashboard_rss_output( 'dashboard_primary' );
|
|
break;
|
|
|
|
case 'dashboard_secondary' :
|
|
wp_dashboard_secondary_output();
|
|
break;
|
|
|
|
case 'dashboard_plugins' :
|
|
wp_dashboard_plugins_output();
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|