1、首先我们安装好wordpress程序,此时看到功能表右侧栏有一个wordpress.org链接。
2、现在我们打开【wordpress】程序安装目录,来到X:\xampp\htdocs\wp\wp-includes\中,找到【default-widgets.PHP】文件。
3、打开【default-widgets.PHP】文件,找到widgets/class-wp-widget-meta.php所在目录。
4、打开【class-wp-widget-meta.php】,找到<?php /** * Filt髫潋啜缅er 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(); ?>代码。
5、将代码替换为<!--<?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();?>-->
6、【保存】之后,菜单栏右侧就没有wordpress.org连接了