Make WordPress Core

Ticket #6015: 6015.r8547.diff

File 6015.r8547.diff, 909 bytes (added by santosj, 16 years ago)

Fixes double http_build_query() encoding in trunk

  • plugin-install.php

     
    1010        $res = apply_filters('plugins_api', false); //NOTE: Allows a plugin to completely override the builtin WordPress.org API.
    1111       
    1212        if ( ! $res ) {
    13                 $request = wp_remote_post('http://api.wordpress.org/plugins/info/1.0/', array(), array(), http_build_query(array('action' => $action, 'request' => serialize($args))) );//Note: http_build_query() can be removed once WP_HTTP accepts unencoded data.
     13                $request = wp_remote_post('http://api.wordpress.org/plugins/info/1.0/', array(), array(), array('action' => $action, 'request' => serialize($args)) );//Note: http_build_query() can be removed once WP_HTTP accepts unencoded data.
    1414                $res = unserialize($request['body']);
    1515                if ( ! $res )
    1616                        wp_die($request['body']);