]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/index-extra.php
Wordpress 3.1.2-scripts
[autoinstalls/wordpress.git] / wp-admin / index-extra.php
index 3b77d104bc060f634c5bcee0a629d52d0e35cd85..efa2526c55eafc5ff65527c910bef19a01287132 100644 (file)
@@ -1,28 +1,42 @@
 <?php
-require_once('admin.php');
-require( 'includes/dashboard.php' );
-require_once (ABSPATH . WPINC . '/rss.php');
+/**
+ * Handle default dashboard widgets options AJAX.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
-@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
+/** Load WordPress Bootstrap */
+require_once( './admin.php' );
+
+/** Load WordPress Administration Dashboard API */
+require(ABSPATH . 'wp-admin/includes/dashboard.php' );
+
+@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
+send_nosniff_header();
 
 switch ( $_GET['jax'] ) {
 
-case 'incominglinks' :
+case 'dashboard_incoming_links' :
        wp_dashboard_incoming_links_output();
        break;
 
-case 'devnews' :
+case 'dashboard_primary' :
        wp_dashboard_rss_output( 'dashboard_primary' );
        break;
 
-case 'planetnews' :
+case 'dashboard_secondary' :
        wp_dashboard_secondary_output();
        break;
 
-case 'plugins' :
+case 'dashboard_plugins' :
        wp_dashboard_plugins_output();
        break;
 
+case 'dashboard_quick_press' :
+       wp_dashboard_quick_press_output();
+       break;
+
 }
 
-?>
+?>
\ No newline at end of file