diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 227697a04..c62ed97f0 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -513,7 +513,7 @@ function discover_pingback_server_uri($url, $timeout_bytes = 2048) { // Send the GET request $request = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: WordPress/$wp_version PHP/" . phpversion() . "\r\n\r\n"; - ob_end_flush(); +// ob_end_flush(); fputs($fp, $request); // Let's check for an X-Pingback header first diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 87c9e1a9a..f79be3e3c 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -155,9 +155,9 @@ function wp_insert_post($postarr = array()) { if ($post_status == 'publish') { do_action('publish_post', $post_ID); if ($post_pingback) - pingback($post_content, $post_ID); - do_enclose( $post_content, $post_ID ); - do_trackbacks($post_ID); + register_shutdown_function('pingback', $content, $post_ID); + register_shutdown_function('do_enclose', $content, $post_ID ); + register_shutdown_function('do_trackbacks', $post_ID); } else if ($post_status == 'static') { generate_page_rewrite_rules();