Skip to content

Commit

Permalink
Reuse get_credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Jun 1, 2020
1 parent f964b3e commit dcfd135
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions php/class-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,10 @@ public function get_access_token( $code ) {
* @return mixed
*/
public function get_client_id( $access_token ) {
$url = get_home_url( null, '/' );
$name = get_bloginfo( 'name' );
$response = wp_remote_post(
$url = get_home_url( null, '/' );
$credentials = $this->get_credentials();
$name = $credentials['utmSource'];
$response = wp_remote_post(
'https://api.unsplash.com/clients',
[
'body' => [
Expand Down

0 comments on commit dcfd135

Please sign in to comment.