My Documents · 2012/09/16 2

去掉wordpress的“感谢使用 WordPress 进行创作”和wordpress.org链接

去掉“感谢使用 WordPress 进行创作”文字需要修改wp-admin 文件下的 admin-footer.php 文件

<p id="footer-left">
<?php
$upgrade = apply_filters( 'update_footer', '' );
$footer_text = array(
    '<span id="footer-thankyou">' . __( 'Thank you for support Sims2 Heaven.' ) . '</span>',
);
echo apply_filters( 'admin_footer_text', implode( ' &bull; ', $footer_text ) );
unset( $footer_text );
?>
</p>

 

去掉wordpress.org链接需要修改wp-includes文件夹下的default-widgets.php文件

<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php echo esc_attr(__('Syndicate this site using RSS 2.0')); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php echo esc_attr(__('The latest comments to all posts in RSS')); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="<?php esc_attr_e( 'http://wordpress.org/' ); ?>" title="<?php echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.')); ?>"><?php
/* translators: meta widget link text */
_e( 'WordPress.org' );
?></a></li>
<?php wp_meta(); ?>
</ul>

升级wordpress版本后需要重新修改。一劳永逸的方法:移除系统自带的管理边栏工具,安装WP PHP widget插件,用这个小工具可以输入Text, HTML, Javascript, Flash and/or PHP code,由此自定义需要的管理功能就可以了。

比如保留注册和登陆链接,代码如下:

<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
</ul>

相关文章