可能有朋友发现最近wordpress后台的控制面板很难打开,但是后台的其他地方可以很快打开,原因是最近台湾地震,多条海底光缆故障,造成国内访问国外网站困难,而wordpress在控制面板那里又在动态读取wordpress.org等相关的内容,因此造成控制面板打开缓慢.
解决的方法网络上常用的是利用插件kill掉控制面板的RSS读取,其实我们也可以直接wp-admin/index.php中删除相应的RSS读取即可.
具体的删除内容请参见下图,或者直接下载我已经删除好
请参照图中的内容进行删除!

的文件,修改后的内容如下:< ?php
require_once('admin.php');
$title = __('Dashboard');
require_once('admin-header.php');
require_once (ABSPATH . WPINC . '/rss-functions.php');
$today = current_time('mysql', 1);
?>
< ?php _e('Dashboard'); ?>
< ?php _e('Latest Activity'); ?>
< ?php
$comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5");
$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
if ( $comments || $numcomments ) :
?>
< ?php _e('Comments'); ?> »
< ?php if ( $numcomments ) : ?>
< ?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> »
< ?php endif; ?>
- < ?php
- ' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '' . get_the_title($comment->comment_post_ID) . '');
edit_comment_link(__("Edit"), ' (', ')');
echo '
';
}
}
?>
if ( $comments ) {
foreach ($comments as $comment) {
echo '
< ?php endif; ?>
< ?php
if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) :
?>
< ?php _e('Posts'); ?> »
- < ?php
- ";
the_title();
echo '
foreach ($recentposts as $post) {
if ($post->post_title == '')
$post->post_title = sprintf(__('Post #%s'), $post->ID);
echo "
';
}
?>
< ?php endif; ?>
< ?php
if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today' ORDER BY post_date ASC") ) :
?>
< ?php _e('Scheduled Entries:') ?>
- < ?php
- " . sprintf(__('%1$s in %2$s'), "$post->post_title", human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt. ' GMT') )) . "
foreach ($scheduled as $post) {
if ($post->post_title == '')
$post->post_title = sprintf(__('Post #%s'), $post->ID);
echo "
";
}
?>
< ?php endif; ?>
< ?php _e('Blog Stats'); ?>
< ?php
$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
if (0 < $numposts) $numposts = number_format($numposts);
$numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
if (0 < $numcomms) $numcomms = number_format($numcomms);
$numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories");
if (0 < $numcats) $numcats = number_format($numcats);
?>
< ?php printf(__('There are currently %1$s posts and %3$s comments, contained within %5$s categories.'), $numposts, 'edit.php', $numcomms, 'edit-comments.php', $numcats, 'categories.php'); ?>
< ?php do_action('activity_box_end'); ?>
< ?php _e('Welcome to WordPress'); ?>
< ?php _e('Use these links to get started:'); ?>
- < ?php _e('Write a post'); ?>
- < ?php _e('Update your profile or change your password'); ?>
- < ?php _e('Add a link to your blogroll'); ?>
- < ?php _e('Change your site’s look or theme'); ?>
< ?php
require('./admin-footer.php');
?>
