WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r27873 r26120  
    53915391        sleep(1);
    53925392
    5393         $remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
    5394         $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . $GLOBALS['wp_version'] . '; ' . get_bloginfo( 'url' ) );
    5395 
    53965393        // Let's check the remote site
    53975394        $http_api_args = array(
     
    53995396            'redirection' => 0,
    54005397            'limit_response_size' => 153600, // 150 KB
    5401             'user-agent' => "$user_agent; verifying pingback from $remote_ip",
    5402             'headers' => array(
    5403                 'X-Pingback-Forwarded-For' => $remote_ip,
    5404             ),
    54055398        );
    54065399        $linea = wp_remote_retrieve_body( wp_safe_remote_get( $pagelinkedfrom, $http_api_args ) );
Note: See TracChangeset for help on using the changeset viewer.