Loading...

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

2006-12-30 17:01:17 发表于HTML客户端 本文链接: wordpress后台无法打开的解决方法

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

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

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

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

002.jpg

的文件,修改后的内容如下:< ?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 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
    foreach ($recentposts as $post) {
    if ($post->post_title == '')
    $post->post_title = sprintf(__('Post #%s'), $post->ID);
    echo "

  • ";
    the_title();
    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
    foreach ($scheduled as $post) {
    if ($post->post_title == '')
    $post->post_title = sprintf(__('Post #%s'), $post->ID);
    echo "

  • " . sprintf(__('%1$s in %2$s'), "$post->post_title", human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt. ' GMT') )) . "
  • ";
    }
    ?>

< ?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
require('./admin-footer.php');
?>

该日志未加标签
发表于 2006-12-30 17:01:17 目录:HTML客户端 [RSS 2.0] 您可以评论. Pinging 不可用.
  • 相关阅读
  • homezz 美国专业主机商
    大师,指导指导如何? 拒绝低俗
      还没有留言呢,等你发表高见,快抢沙发啊!
    评论分页: 1
    (Required)
    (Required, not published)
    如果留言未显示无需重复留言,我将为你恢复!