Permalink
Browse files

Removed some code but forgot to update plugin check function

  • Loading branch information...
1 parent 4324b9b commit 89a0ac8f7ee8632cd33858f413a67e05b39a0de9 @jeremyclark13 committed May 22, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 plugin/test-plugin-update/test-plugin-update.php
@@ -36,12 +36,18 @@ function check_for_plugin_update($checked_data) {
if (empty($checked_data->checked))
return $checked_data;
- $request_args = array(
+ $args = array(
'slug' => $plugin_slug,
'version' => $checked_data->checked[$plugin_slug .'/'. $plugin_slug .'.php'],
);
-
- $request_string = prepare_request('basic_check', $request_args);
+ $request_string = array(
+ 'body' => array(
+ 'action' => 'basic_check',
+ 'request' => serialize($args),
+ 'api-key' => md5(get_bloginfo('url'))
+ ),
+ 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url')
+ );
// Start checking for an update
$raw_response = wp_remote_post($api_url, $request_string);

0 comments on commit 89a0ac8

Please sign in to comment.