Ticket #6015: 6015.r8547.diff
File 6015.r8547.diff, 909 bytes (added by , 16 years ago) |
---|
-
plugin-install.php
10 10 $res = apply_filters('plugins_api', false); //NOTE: Allows a plugin to completely override the builtin WordPress.org API. 11 11 12 12 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. 14 14 $res = unserialize($request['body']); 15 15 if ( ! $res ) 16 16 wp_die($request['body']);