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