Wordpress 3.1.2-scripts
[autoinstalls/wordpress.git] / wp-admin / index-extra.php
1 <?php
2 /**
3  * Handle default dashboard widgets options AJAX.
4  *
5  * @package WordPress
6  * @subpackage Administration
7  */
8
9 /** Load WordPress Bootstrap */
10 require_once( './admin.php' );
11
12 /** Load WordPress Administration Dashboard API */
13 require(ABSPATH . 'wp-admin/includes/dashboard.php' );
14
15 @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
16 send_nosniff_header();
17
18 switch ( $_GET['jax'] ) {
19
20 case 'dashboard_incoming_links' :
21         wp_dashboard_incoming_links_output();
22         break;
23
24 case 'dashboard_primary' :
25         wp_dashboard_rss_output( 'dashboard_primary' );
26         break;
27
28 case 'dashboard_secondary' :
29         wp_dashboard_secondary_output();
30         break;
31
32 case 'dashboard_plugins' :
33         wp_dashboard_plugins_output();
34         break;
35
36 case 'dashboard_quick_press' :
37         wp_dashboard_quick_press_output();
38         break;
39
40 }
41
42 ?>