Make posting faster. Fixes #1580 for 1.6
git-svn-id: http://svn.automattic.com/wordpress/trunk@2828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c9b3f35a83
commit
ab39a0e1ac
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue