Archive

Posts Tagged ‘dashboard’

remove the dashboard in wordpress

August 10th, 2008 No comments

There are many rss in the dashboard, and sometimes it causes the wp-admin to load slowly, following is a way to remove the dashboard:

find and modify the file of index-extra.php in the folder \wp-admin:

original:

<?php require_once(’admin.php’);
require( ‘includes/dashboard.php’ );
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;

}

?>

modified:

<?php require_once(’admin.php’);
require( ‘includes/dashboard.php’ );
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;

}
*/
?>

Categories: wordpress Tags: ,