- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r16469 r17928 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 { 48 $res = unserialize( $request['body']);48 $res = unserialize( wp_remote_retrieve_body( $request ) ); 49 49 if ( false === $res ) 50 $res = new WP_Error('plugins_api_failed', __('An unknown error occurred.'), $request['body']);50 $res = new WP_Error('plugins_api_failed', __('An unknown error occurred.'), wp_remote_retrieve_body( $request ) ); 51 51 } 52 52 } elseif ( !is_wp_error($res) ) { … … 368 368 } 369 369 add_action('install_plugins_pre_plugin-information', 'install_plugin_information'); 370
Note: See TracChangeset
for help on using the changeset viewer.