Ticket #19634: plugin-patch.diff
| File plugin-patch.diff, 768 bytes (added by bi0xid, 17 months ago) |
|---|
-
.php
old new 41 41 $res = apply_filters('plugins_api', false, $action, $args); 42 42 43 43 if ( false === $res ) { 44 $request = wp_remote_post( 'http://api.wordpress.org/plugins/info/1.0/', array( 'timeout' => 15, 'body' => array('action' => $action, 'request' => serialize($args))) );44 $request = wp_remote_post( 'http://api.wordpress.org/plugins/info/1.0/', array( 'timeout' => 60, 'body' => array( 'action' => $action, 'request' => serialize( $args ) ) ) ); 45 45 if ( is_wp_error($request) ) { 46 46 $res = new WP_Error('plugins_api_failed', __('An Unexpected HTTP Error occurred during the API request.'), $request->get_error_message() ); 47 47 } else {
