From c115c9f18fecca4e93a9ea137f5fa1a30cec7198 Mon Sep 17 00:00:00 2001 From: root <root@rivolta.investici.org> Date: Sat, 5 Mar 2011 17:10:10 +0000 Subject: [PATCH 103/229] 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 15cb44bc..7f6d1030 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2658,7 +2658,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(), @@ -2671,10 +2671,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(), @@ -2687,10 +2687,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(), @@ -2703,11 +2703,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(); } /** -- 2.17.1