如何删除wordpress“功能”中的WordPress外链

首先在Wordpress\wp-includes目录中找到default-widgets.php文件,使用文本或者php编辑器打开,在大概390行有这样一组代码,删掉下面这组代码即可。

<?php
/**
* Filter the “Powered by WordPress” text in the Meta widget.
*
* @since 3.6.0
*
* @param string $title_text Default title text for the WordPress.org link.
*/
echo apply_filters( ‘widget_meta_poweredby’, sprintf( ‘<li><a href=”%s” title=”%s”>%s</a></li>’,
esc_url( __( ‘https://wordpress.org/’ ) ),
esc_attr__( ‘Powered by WordPress, state-of-the-art semantic personal publishing platform.’ ),
_x( ‘WordPress.org’, ‘meta widget link text’ )
) );

wp_meta();
?>

发表评论