From a9c4a4372d604799f8c62b16be7c79408be28387 Mon Sep 17 00:00:00 2001 From: root <root@rivolta.investici.org> Date: Sat, 5 Mar 2011 17:10:10 +0000 Subject: [PATCH] Remove pingback/trackback Do not perform pingbacks and trackbacks when we update via cron. --- wp-includes/comment.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index adf2f1236..25197c66b 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2663,7 +2663,7 @@ function discover_pingback_server_uri( $url, $deprecated = '' ) { function do_all_pings() { global $wpdb; - // Do pingbacks. + // NOT Do pingbacks. A/I $pings = get_posts( array( 'post_type' => get_post_types(), @@ -2676,10 +2676,10 @@ function do_all_pings() { foreach ( $pings as $ping ) { delete_post_meta( $ping, '_pingme' ); - pingback( null, $ping ); + //pingback( null, $ping ); } - // Do enclosures. + // NOT Do enclosures. A/I $enclosures = get_posts( array( 'post_type' => get_post_types(), @@ -2692,10 +2692,10 @@ function do_all_pings() { foreach ( $enclosures as $enclosure ) { delete_post_meta( $enclosure, '_encloseme' ); - do_enclose( null, $enclosure ); + // do_enclose( null, $enclosure ); } - // Do trackbacks. + // NOT Do trackbacks. A/I $trackbacks = get_posts( array( 'post_type' => get_post_types(), @@ -2708,11 +2708,11 @@ function do_all_pings() { foreach ( $trackbacks as $trackback ) { delete_post_meta( $trackback, '_trackbackme' ); - do_trackbacks( $trackback ); + // do_trackbacks( $trackback ); } - // Do Update Services/Generic Pings. - generic_ping(); + //Do NOT Update Services/Generic Pings + // generic_ping(); } /** -- GitLab