Skip to content

Commit 141f4f8

Browse files
committed
Use correct ::get function when we have a key
1 parent c94a814 commit 141f4f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/class-wp-rest-oauth1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public function generate_access_token( $oauth_consumer_key, $oauth_token, $oauth
562562
}
563563

564564
$this->should_attempt = false;
565-
$consumer = WP_REST_OAuth1_Client::get( $oauth_consumer_key );
565+
$consumer = WP_REST_OAuth1_Client::get_by_key( $oauth_consumer_key );
566566
$this->should_attempt = true;
567567

568568
if ( is_wp_error( $consumer ) ) {

0 commit comments

Comments
 (0)