- $request = wp_remote_post('http://api.wordpress.org/themes/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) );
+ $url = 'http://api.wordpress.org/themes/info/1.0/';
+ if ( wp_http_supports( array( 'ssl' ) ) )
+ $url = set_url_scheme( $url, 'https' );
+
+ $request = wp_remote_post( $url, array(
+ 'body' => array(
+ 'action' => $action,
+ 'request' => serialize( $args )
+ )
+ ) );
+