Make posting faster. Fixes #1580 for 1.6
git-svn-id: https://develop.svn.wordpress.org/trunk@2828 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5ce87df525
commit
3f1fe52b6e
@ -513,7 +513,7 @@ function discover_pingback_server_uri($url, $timeout_bytes = 2048) {
|
|||||||
|
|
||||||
// Send the GET request
|
// 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";
|
$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);
|
fputs($fp, $request);
|
||||||
|
|
||||||
// Let's check for an X-Pingback header first
|
// Let's check for an X-Pingback header first
|
||||||
|
@ -155,9 +155,9 @@ function wp_insert_post($postarr = array()) {
|
|||||||
if ($post_status == 'publish') {
|
if ($post_status == 'publish') {
|
||||||
do_action('publish_post', $post_ID);
|
do_action('publish_post', $post_ID);
|
||||||
if ($post_pingback)
|
if ($post_pingback)
|
||||||
pingback($post_content, $post_ID);
|
register_shutdown_function('pingback', $content, $post_ID);
|
||||||
do_enclose( $post_content, $post_ID );
|
register_shutdown_function('do_enclose', $content, $post_ID );
|
||||||
do_trackbacks($post_ID);
|
register_shutdown_function('do_trackbacks', $post_ID);
|
||||||
} else if ($post_status == 'static') {
|
} else if ($post_status == 'static') {
|
||||||
generate_page_rewrite_rules();
|
generate_page_rewrite_rules();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user