Ticket #17771: 17771.patch
File 17771.patch, 913 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/comment-functions.php
2288 2288 if ( $pingback_server_url ) { 2289 2289 @ set_time_limit( 60 ); 2290 2290 // Now, the RPC call 2291 $pagelinkedfrom = get_permalink( $post_ID);2291 $pagelinkedfrom = get_permalink( $post_ID ); 2292 2292 2293 if ( strlen( $pagelinkedfrom ) > 200 ) { 2294 $shortlink = wp_get_shortlink( $post_ID ); 2295 $pagelinkedfrom = ! empty( $shortlink ) ? $shortlink : $pagelinkedfrom; 2296 } 2297 2293 2298 // using a timeout of 3 seconds should be enough to cover slow servers 2294 $client = new WP_HTTP_IXR_Client( $pingback_server_url);2299 $client = new WP_HTTP_IXR_Client( $pingback_server_url ); 2295 2300 $client->timeout = 3; 2296 2301 /** 2297 2302 * Filter the user agent sent when pinging-back a URL.