Changeset 27873 for branches/3.8/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 03/31/2014 08:44:08 PM (10 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
/trunk merged: 27822,27872
- Property svn:mergeinfo changed
-
branches/3.8/src/wp-includes/class-wp-xmlrpc-server.php
r26120 r27873 5391 5391 sleep(1); 5392 5392 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 5393 5396 // Let's check the remote site 5394 5397 $http_api_args = array( … … 5396 5399 'redirection' => 0, 5397 5400 '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 ), 5398 5405 ); 5399 5406 $linea = wp_remote_retrieve_body( wp_safe_remote_get( $pagelinkedfrom, $http_api_args ) );
Note: See TracChangeset
for help on using the changeset viewer.