可能有朋友发现最近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);
- ?>
- <div class="wrap">
- <h2>< ?php _e('Dashboard'); ?></h2>
- <div id="zeitgeist">
- <h2>< ?php _e('Latest Activity'); ?></h2>
- < ?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 ) :
- ?>
- <div>
- <h3>< ?php _e('Comments'); ?> <a title="<?php _e('More comments...'); ?>" href="http://www.storyday.com/edit-comments.php">»</a></h3>
- < ?php if ( $numcomments ) : ?>
- <strong><a href="http://www.storyday.com/moderation.php">< ?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> »</a></strong>
- < ?php endif; ?>
- <ul>< ?php
- if ( $comments ) {
- foreach ($comments as $comment) {
- echo '
- <li>' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="http://www.storyday.com/%27.%20get_permalink%28$comment-%3Ecomment_post_ID%29%20.%20%27#comment-%27%20.%20$comment-%3Ecomment_ID%20.%20%27">' . get_the_title($comment->comment_post_ID) . '</a>');
- edit_comment_link(__("Edit"), ' <small>(', ')</small>');
- echo '
- ';
- }
- }
- ?>
- </ul>
- </div>
- < ?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") ) :
- ?>
- <div>
- <h3>< ?php _e('Posts'); ?> <a title="<?php _e('More posts...'); ?>" href="http://www.storyday.com/edit.php">»</a></h3>
- <ul>< ?php
- foreach ($recentposts as $post) {
- if ($post->post_title == '')
- echo "
- <li><a href="http://www.storyday.com/post.php?action=edit&post=$post-%3EID">";
- the_title();
- echo '</a></li>
- ';
- }
- ?></ul>
- </div>
- < ?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") ) :
- ?>
- <div>
- <h3>< ?php _e('Scheduled Entries:') ?></h3>
- <ul>< ?php
- foreach ($scheduled as $post) {
- if ($post->post_title == '')
- echo "
- <li>" . sprintf(__('%1$s in %2$s'), "<a title="" . __(" href="http://www.storyday.com/post.php?action=edit&post=$post-%3EID">$post->post_title</a>", human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt. ' GMT') )) . "</li>
- ";
- }
- ?></ul>
- </div>
- < ?php endif; ?>
- <div>
- <h3>< ?php _e('Blog Stats'); ?></h3>
- < ?php
- if (0 < $numposts) $numposts = number_format($numposts);
- if (0 < $numcomms) $numcomms = number_format($numcomms);
- if (0 < $numcats) $numcats = number_format($numcats);
- ?>
- < ?php printf(__('There are currently %1$s <a title="Posts" href="http://www.storyday.com/%2$s">posts and %3$s <a title="Comments" href="http://www.storyday.com/%4$s">comments</a>, contained within %5$s <a title="categories" href="http://www.storyday.com/%6$s">categories</a>.'), $numposts, 'edit.php', $numcomms, 'edit-comments.php', $numcats, 'categories.php'); ?></div>
- < ?php do_action('activity_box_end'); ?></div>
- <h3>< ?php _e('Welcome to WordPress'); ?></h3>
- < ?php _e('Use these links to get started:'); ?>
- <ul>
- <li><a href="http://www.storyday.com/post.php">< ?php _e('Write a post'); ?></a></li>
- <li><a href="http://www.storyday.com/profile.php">< ?php _e('Update your profile or change your password'); ?></a></li>
- <li><a href="http://www.storyday.com/link-add.php">< ?php _e('Add a link to your blogroll'); ?></a></li>
- <li><a href="http://www.storyday.com/themes.php">< ?php _e('Change your site’s look or theme'); ?></a></li>
- </ul>
- <div style="clear: both">
- <br clear="all" /></div>
- </div>
- < ?php
- require('./admin-footer.php');
- ?>

赶快占沙发