mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-02 16:59:35 +01:00
175c2b6fb1
git-svn-id: http://svn.automattic.com/wordpress/trunk@8618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
40 lines
757 B
PHP
40 lines
757 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 'incominglinks' :
|
|
wp_dashboard_incoming_links_output();
|
|
break;
|
|
|
|
case 'devnews' :
|
|
wp_dashboard_rss_output( 'dashboard_primary' );
|
|
break;
|
|
|
|
case 'planetnews' :
|
|
wp_dashboard_secondary_output();
|
|
break;
|
|
|
|
case 'plugins' :
|
|
wp_dashboard_plugins_output();
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|