Skip to content

Commit

Permalink
Use correct ::get function when we have a key
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed Dec 7, 2015
1 parent c94a814 commit 141f4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class-wp-rest-oauth1.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ public function generate_access_token( $oauth_consumer_key, $oauth_token, $oauth
}

$this->should_attempt = false;
$consumer = WP_REST_OAuth1_Client::get( $oauth_consumer_key );
$consumer = WP_REST_OAuth1_Client::get_by_key( $oauth_consumer_key );
$this->should_attempt = true;

if ( is_wp_error( $consumer ) ) {
Expand Down

0 comments on commit 141f4f8

Please sign in to comment.