]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/index-extra.php
Wordpress 3.3-scripts
[autoinstalls/wordpress.git] / wp-admin / index-extra.php
index 22df0d67dc1f78917b91fdc3eb45d5e94fc03f88..bbaea63e571fa678e6231d6c373a0ea058548e28 100644 (file)
@@ -6,11 +6,13 @@
  * @subpackage Administration
  */
 
+define('DOING_AJAX', true);
+
 /** Load WordPress Bootstrap */
 require_once( './admin.php' );
 
 /** Load WordPress Administration Dashboard API */
-require( './includes/dashboard.php' );
+require(ABSPATH . 'wp-admin/includes/dashboard.php' );
 
 @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
 send_nosniff_header();
@@ -18,23 +20,19 @@ send_nosniff_header();
 switch ( $_GET['jax'] ) {
 
 case 'dashboard_incoming_links' :
-       wp_dashboard_incoming_links_output();
+       wp_dashboard_incoming_links();
        break;
 
 case 'dashboard_primary' :
-       wp_dashboard_rss_output( 'dashboard_primary' );
+       wp_dashboard_primary();
        break;
 
 case 'dashboard_secondary' :
-       wp_dashboard_secondary_output();
+       wp_dashboard_secondary();
        break;
 
 case 'dashboard_plugins' :
-       wp_dashboard_plugins_output();
-       break;
-
-case 'dashboard_quick_press' :
-       wp_dashboard_quick_press_output();
+       wp_dashboard_plugins();
        break;
 
 }