Changeset 27872
- Timestamp:
- 03/31/2014 08:42:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r27730 r27872 5789 5789 sleep(1); 5790 5790 5791 $remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] ); 5792 $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . $GLOBALS['wp_version'] . '; ' . get_bloginfo( 'url' ) ); 5793 5791 5794 // Let's check the remote site 5792 5795 $http_api_args = array( … … 5794 5797 'redirection' => 0, 5795 5798 'limit_response_size' => 153600, // 150 KB 5799 'user-agent' => "$user_agent; verifying pingback from $remote_ip", 5800 'headers' => array( 5801 'X-Pingback-Forwarded-For' => $remote_ip, 5802 ), 5796 5803 ); 5797 5804 $linea = wp_remote_retrieve_body( wp_safe_remote_get( $pagelinkedfrom, $http_api_args ) );
Note: See TracChangeset
for help on using the changeset viewer.