mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389.
See #36335. git-svn-id: https://develop.svn.wordpress.org/trunk@38470 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2366,6 +2366,9 @@ function generic_ping( $post_id = 0 ) {
|
||||
* @param int $post_ID Post ID.
|
||||
*/
|
||||
function pingback($content, $post_ID) {
|
||||
include_once( ABSPATH . WPINC . '/class-IXR.php' );
|
||||
include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );
|
||||
|
||||
// original code by Mort (http://mort.mine.nu:8080)
|
||||
$post_links = array();
|
||||
|
||||
@@ -2504,6 +2507,9 @@ function trackback($trackback_url, $title, $excerpt, $ID) {
|
||||
* @param string $path Path to send the ping.
|
||||
*/
|
||||
function weblog_ping($server = '', $path = '') {
|
||||
include_once( ABSPATH . WPINC . '/class-IXR.php' );
|
||||
include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );
|
||||
|
||||
// using a timeout of 3 seconds should be enough to cover slow servers
|
||||
$client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path));
|
||||
$client->timeout = 3;
|
||||
|
||||
Reference in New Issue
Block a user