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

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 = '' ) { ...@@ -2663,7 +2663,7 @@ function discover_pingback_server_uri( $url, $deprecated = '' ) {
function do_all_pings() { function do_all_pings() {
global $wpdb; global $wpdb;
// Do pingbacks. // NOT Do pingbacks. A/I
$pings = get_posts( $pings = get_posts(
array( array(
'post_type' => get_post_types(), 'post_type' => get_post_types(),
...@@ -2676,10 +2676,10 @@ function do_all_pings() { ...@@ -2676,10 +2676,10 @@ function do_all_pings() {
foreach ( $pings as $ping ) { foreach ( $pings as $ping ) {
delete_post_meta( $ping, '_pingme' ); delete_post_meta( $ping, '_pingme' );
pingback( null, $ping ); //pingback( null, $ping );
} }
// Do enclosures. // NOT Do enclosures. A/I
$enclosures = get_posts( $enclosures = get_posts(
array( array(
'post_type' => get_post_types(), 'post_type' => get_post_types(),
...@@ -2692,10 +2692,10 @@ function do_all_pings() { ...@@ -2692,10 +2692,10 @@ function do_all_pings() {
foreach ( $enclosures as $enclosure ) { foreach ( $enclosures as $enclosure ) {
delete_post_meta( $enclosure, '_encloseme' ); delete_post_meta( $enclosure, '_encloseme' );
do_enclose( null, $enclosure ); // do_enclose( null, $enclosure );
} }
// Do trackbacks. // NOT Do trackbacks. A/I
$trackbacks = get_posts( $trackbacks = get_posts(
array( array(
'post_type' => get_post_types(), 'post_type' => get_post_types(),
...@@ -2708,11 +2708,11 @@ function do_all_pings() { ...@@ -2708,11 +2708,11 @@ function do_all_pings() {
foreach ( $trackbacks as $trackback ) { foreach ( $trackbacks as $trackback ) {
delete_post_meta( $trackback, '_trackbackme' ); delete_post_meta( $trackback, '_trackbackme' );
do_trackbacks( $trackback ); // do_trackbacks( $trackback );
} }
// Do Update Services/Generic Pings. //Do NOT Update Services/Generic Pings
generic_ping(); // generic_ping();
} }
/** /**
......
Supports Markdown
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