WordPress.org

Make WordPress Core

Ticket #19634: plugin-patch.diff

File plugin-patch.diff, 768 bytes (added by bi0xid, 2 years ago)

changes in /wp-admin/includes/plugin-install.php

  • .php

    old new  
    4141        $res = apply_filters('plugins_api', false, $action, $args); 
    4242 
    4343        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 ) ) ) ); 
    4545                if ( is_wp_error($request) ) { 
    4646                        $res = new WP_Error('plugins_api_failed', __('An Unexpected HTTP Error occurred during the API request.'), $request->get_error_message() ); 
    4747                } else {