Commit a9c4a437 authored by root's avatar root Committed by agata

Remove pingback/trackback

Do not perform pingbacks and trackbacks when we update via cron.
parent ed7596e8
......@@ -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();
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment