I have tried to disable pingbacks inside WordPress.
Can be improved the following code?
// Disable self-pingbacks
function stop_self_ping( &$links ) {
$home = get_option( 'home' );
foreach ( $links as $l => $link )
if ( 0 === strpos( $link, $home ) )
unset($links[$l]);
}
add_action( 'pre_ping', 'stop_self_ping' );