wordpress后台无法打开的解决方法

时间:2006-12-30 17:01:17      类别:HTML客户端      本文链接:生活点滴Enjoy Life

可能有朋友发现最近wordpress后台的控制面板很难打开,但是后台的其他地方可以很快打开,原因是最近台湾地震,多条海底光缆故障,造成国内访问国外网站困难,而wordpress在控制面板那里又在动态读取wordpress.org等相关的内容,因此造成控制面板打开缓慢.

解决的方法网络上常用的是利用插件kill掉控制面板的RSS读取,其实我们也可以直接wp-admin/index.php中删除相应的RSS读取即可.

具体的删除内容请参见下图,或者直接下载我已经删除好001.jpg

请参照图中的内容进行删除!

002.jpg

的文件,修改后的内容如下:

  1. < ?php
  2. require_once('admin.php');
  3. $title = __('Dashboard');
  4. require_once('admin-header.php');
  5. require_once (ABSPATH . WPINC . '/rss-functions.php');
  6.  
  7. $today = current_time('mysql', 1);
  8. ?>
  9. <div class="wrap">
  10. <h2>< ?php _e('Dashboard'); ?></h2>
  11. <div id="zeitgeist">
  12. <h2>< ?php _e('Latest Activity'); ?></h2>
  13. < ?php
  14. $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");
  15. $numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
  16.  
  17. if ( $comments || $numcomments ) :
  18. ?>
  19. <div>
  20. <h3>< ?php _e('Comments'); ?> <a title="<?php _e('More comments...'); ?>" href="http://www.storyday.com/edit-comments.php">»</a></h3>
  21. < ?php if ( $numcomments ) : ?>
  22. <strong><a href="http://www.storyday.com/moderation.php">< ?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> »</a></strong>
  23. < ?php endif; ?>
  24. <ul>< ?php
  25. if ( $comments ) {
  26. foreach ($comments as $comment) {
  27.         <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>');
  28. edit_comment_link(__("Edit"), ' <small>(', ')</small>');
  29. ';
  30. }
  31. }
  32. ?>
  33. </ul>
  34. </div>
  35. < ?php endif; ?>
  36.  
  37. < ?php
  38. 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") ) :
  39. ?>
  40. <div>
  41. <h3>< ?php _e('Posts'); ?> <a title="<?php _e('More posts...'); ?>" href="http://www.storyday.com/edit.php">»</a></h3>
  42. <ul>< ?php
  43. foreach ($recentposts as $post) {
  44. if ($post->post_title == '')
  45. $post->post_title = sprintf(__('Post #%s'), $post->ID);
  46.         <li><a href="http://www.storyday.com/post.php?action=edit&post=$post-%3EID">";
  47. the_title();
  48. echo '</a></li>
  49. ';
  50. }
  51. ?></ul>
  52. </div>
  53. < ?php endif; ?>
  54.  
  55. < ?php
  56. 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") ) :
  57. ?>
  58. <div>
  59. <h3>< ?php _e('Scheduled Entries:') ?></h3>
  60. <ul>< ?php
  61. foreach ($scheduled as $post) {
  62. if ($post->post_title == '')
  63. $post->post_title = sprintf(__('Post #%s'), $post->ID);
  64.         <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>
  65. ";
  66. }
  67. ?></ul>
  68. </div>
  69. < ?php endif; ?>
  70. <div>
  71. <h3>< ?php _e('Blog Stats'); ?></h3>
  72. < ?php
  73. $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
  74. if (0 < $numposts) $numposts = number_format($numposts);
  75. $numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
  76. if (0 < $numcomms) $numcomms = number_format($numcomms);
  77. $numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories");
  78. if (0 < $numcats) $numcats = number_format($numcats);
  79. ?>
  80. < ?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>
  81. < ?php do_action('activity_box_end'); ?></div>
  82. <h3>< ?php _e('Welcome to WordPress'); ?></h3>
  83. < ?php _e('Use these links to get started:'); ?>
  84. <ul>
  85.         <li><a href="http://www.storyday.com/post.php">< ?php _e('Write a post'); ?></a></li>
  86.         <li><a href="http://www.storyday.com/profile.php">< ?php _e('Update your profile or change your password'); ?></a></li>
  87.         <li><a href="http://www.storyday.com/link-add.php">< ?php _e('Add a link to your blogroll'); ?></a></li>
  88.         <li><a href="http://www.storyday.com/themes.php">< ?php _e('Change your site’s look or theme'); ?></a></li>
  89. </ul>
  90. <div style="clear: both">
  91. <br clear="all" /></div>
  92. </div>
  93. < ?php
  94. require('./admin-footer.php');
  95. ?>

该日志未加标签
发表于 2006-12-30 17:01:17 目录:HTML客户端 [RSS 2.0] 您可以评论. Pinging 不可用.
如果您喜欢本blog,欢迎你的feed订阅,谢谢你的支持

赶快占沙发

    还没有留言呢,等你发表高见,快抢沙发啊!
  • 转到第
(Required)
(Required, not published)
如果留言未显示请不要重复留言,我将为你恢复!


生活点滴Enjoy Life is proudly powered by WordPress | admin| About Us | cosbeta| Bluehost| site map 0.589s & 26