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
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Load WordPress Bootstrap */
|
2006-11-18 18:12:39 -05:00
|
|
|
require_once('admin.php');
|
2008-08-11 16:26:31 -04:00
|
|
|
|
|
|
|
/** Load WordPress Administration Dashboard API */
|
2008-02-21 16:20:09 -05:00
|
|
|
require( 'includes/dashboard.php' );
|
2008-08-11 16:26:31 -04:00
|
|
|
|
|
|
|
/** Load Magpie RSS API or custom RSS API */
|
2006-11-18 18:12:39 -05:00
|
|
|
require_once (ABSPATH . WPINC . '/rss.php');
|
|
|
|
|
2007-06-02 01:21:18 -04:00
|
|
|
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
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-02-02 02:57:51 -05:00
|
|
|
case 'incominglinks' :
|
2008-02-21 16:20:09 -05:00
|
|
|
wp_dashboard_incoming_links_output();
|
|
|
|
break;
|
2006-11-18 18:12:39 -05:00
|
|
|
|
|
|
|
case 'devnews' :
|
2008-02-21 16:20:09 -05:00
|
|
|
wp_dashboard_rss_output( 'dashboard_primary' );
|
|
|
|
break;
|
2006-11-18 18:12:39 -05:00
|
|
|
|
|
|
|
case 'planetnews' :
|
2008-02-21 16:20:09 -05:00
|
|
|
wp_dashboard_secondary_output();
|
|
|
|
break;
|
2008-02-19 22:23:34 -05:00
|
|
|
|
|
|
|
case 'plugins' :
|
2008-02-21 16:20:09 -05:00
|
|
|
wp_dashboard_plugins_output();
|
|
|
|
break;
|
2008-02-19 22:23:34 -05:00
|
|
|
|
2006-11-18 18:12:39 -05:00
|
|
|
}
|
|
|
|
|
2008-08-11 16:26:31 -04:00
|
|
|
?>
|