Permalink
Browse files

typo fixes

  • Loading branch information...
1 parent 33db2d8 commit aab2353834661ae78bd96076c93ac1c95d920d3e @alexkingorg alexkingorg committed Aug 25, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 classes/aktt.php
View
@@ -826,7 +826,7 @@ static function social_key_auth() {
/**
- * Request handler for admin
+ * Request handler
*
* @return void
*/
@@ -854,7 +854,7 @@ function controller(){
// check for account_name
$username = (!empty($_GET['username']) ? stripslashes($_GET['username']) : null);
// download tweet
- $tweet = self::download_tweet($_GET['tweet_id'], $usename);
+ $tweet = self::download_tweet($_GET['tweet_id'], $username);
if (!is_a($tweet, 'stdClass')) {
wp_die('Failed to download tweet.');
}
@@ -1080,7 +1080,7 @@ static function download_tweet($status_id, $username = null) {
}
}
if (!$tweet) {
- $response = wp_remote_get('http://api.twitter.com/1/statuses/show/'.urlencode($t->id).'.json?include_entities=true', array());
+ $response = wp_remote_get('http://api.twitter.com/1/statuses/show/'.urlencode($status_id).'.json?include_entities=true', array());
if (!is_wp_error($response)) {
$tweet = json_decode(wp_remote_retrieve_body($response));
}

0 comments on commit aab2353

Please sign in to comment.