您的位置:首页 > 其它

WordPress的PingBack

2016-04-28 15:22 295 查看
在wordpress上写些文字,然后相互链接,就跑出来一些所谓的“评论”,但内容为空。

回到正常浏览状态,发现有pingback:



相关文章:No Self Ping WordPress plugin: Stop Pinging Posts From Own Domain

插件下载:No Self Pings

插件的安装不必细述。

附 这个插件的代码如下:

<?php
/*
Plugin Name: No Self Pings
Plugin URI: http://blogwaffe.com/2006/10/04/421/ Description: Keeps WordPress from sending pings to your own site.
Version: 0.2
Author: Michael D. Adams
Author URI: http://blogwaffe.com/ 
License: GPL2 - http://www.gnu.org/licenses/gpl.txt */

function no_self_ping( &$links ) {
$home = get_option( 'home' );
foreach ( $links as $l => $link )
if ( 0 === strpos( $link, $home ) )
unset($links[$l]);
}

add_action( 'pre_ping', 'no_self_ping' );
?>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: