1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-28 23:16:22 +01:00
blog/content/posts/2008-07-15-wordpress-25-get-rid-of-that-sluggish-dashboard.md

80 lines
2.6 KiB
Markdown
Raw Normal View History

2013-11-18 23:54:59 +01:00
---
2018-07-19 02:22:01 +02:00
type: post
2013-11-28 00:20:39 +01:00
2013-11-18 23:54:59 +01:00
title: 'Wordpress 2.5+: Get Rid of That Sluggish Dashboard'
2013-11-28 00:20:39 +01:00
author: Matthias Kretschmann
date: 2008-07-15 14:04:46+00:00
2018-07-18 23:04:31 +02:00
2013-11-18 23:54:59 +01:00
tags:
2018-08-30 22:50:09 +02:00
- design
2015-06-07 23:13:18 +02:00
- tutorial
- wordpress
2013-11-18 23:54:59 +01:00
---
2018-07-17 23:26:36 +02:00
![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.
2013-11-18 23:54:59 +01:00
2018-08-08 22:26:42 +02:00
<!-- more -->
2013-11-18 23:54:59 +01:00
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.
2013-11-28 00:20:39 +01:00
So open your `/wp-admin/index-extra.php` file. It should look like this:
2013-11-18 23:54:59 +01:00
2018-07-18 23:04:31 +02:00
```php
2013-11-28 00:20:39 +01:00
<?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;
}
?>
2018-07-18 23:04:31 +02:00
```
2013-11-18 23:54:59 +01:00
Now just uncomment the lines so it looks like this (every line with two leading // is uncommented and therefore inactive):
2018-07-18 23:04:31 +02:00
```php
2013-11-28 00:20:39 +01:00
<?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'] ) {
2015-06-07 23:00:52 +02:00
//
2013-11-28 00:20:39 +01:00
// case 'incominglinks' :
// wp_dashboard_incoming_links_output();
// break;
2015-06-07 23:00:52 +02:00
//
2013-11-28 00:20:39 +01:00
// case 'devnews' :
// wp_dashboard_rss_output( 'dashboard_primary' );
// break;
2015-06-07 23:00:52 +02:00
//
2013-11-28 00:20:39 +01:00
// case 'planetnews' :
// wp_dashboard_secondary_output();
// break;
2015-06-07 23:00:52 +02:00
//
2013-11-28 00:20:39 +01:00
// case 'plugins' :
// wp_dashboard_plugins_output();
// break;
2015-06-07 23:00:52 +02:00
//
2013-11-28 00:20:39 +01:00
// }
?>
2018-07-18 23:04:31 +02:00
```
2013-11-18 23:54:59 +01:00
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.