1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00
blog/_src/_posts/2008-07-15-wordpress-25-get-rid-of-that-sluggish-dashboard.markdown

75 lines
2.6 KiB
Markdown
Raw Normal View History

2013-11-18 23:54:59 +01:00
---
author: Matthias Kretschmann
comments: true
date: 2008-07-15 14:04:46+00:00
layout: post
slug: wordpress-25-get-rid-of-that-sluggish-dashboard
title: 'Wordpress 2.5+: Get Rid of That Sluggish Dashboard'
wordpress_id: 87
categories:
- design
tags:
- tutorial
---
![Wordpress Logo by kremalicious](/media/wordpress-logo.png)Since Wordpress 2.5 it was nearly impossible for me to log into Wordpress and quickly head over to the write tab. The Dashboard always wants to load a bunch of things in it but this always seemed to fail in my setup and slow things down. And not enough the Dashboard just locks everything up while loading which can take more than one minute.
I've searched for a simple way of disabling those feeds, plugins etc. stuff the Wordpress Dashboard tries to fill but it seems you can't disable these from the backend. But there's a quick way for doing this which involves editing your /wp-admin/index-extra.php and uncomment some lines there. This will leave your Dashboard intact while it stops Wordpress from connecting to various sources to screw your blog up when you just want to quickly write something.
<!-- more -->So open your /wp-admin/index-extra.php file. It should look like this:
`<?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;
}
?>`
Now just uncomment the lines so it looks like this (every line with two leading // is uncommented and therefore inactive):
`<?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;
//
// }
?>`
And that's it. Save the file on your server, log in to your Wordpress backend and you should see your Dashboard with everything intact. It just won't search for incoming links and all those other RSS sources anymore.
Remember that every update of Wordpress will overwrite this file.