Skip to content

Commit

Permalink
feat: add rest_prefix to code parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Nov 27, 2023
1 parent 9c155de commit a5b3147
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/class-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,15 @@ public function generate_auth(): string {

$data = wp_json_encode(
array(
'version' => Storipress::instance()->version,
'token' => $password[0],
'hash_key' => $password[1]['password'],
'email' => $user->user_email,
'username' => $user->user_login,
'user_id' => $user_id,
'site_name' => get_bloginfo( 'name' ),
'url' => get_bloginfo( 'url' ),
'version' => Storipress::instance()->version,
'token' => $password[0],
'hash_key' => $password[1]['password'],
'email' => $user->user_email,
'username' => $user->user_login,
'user_id' => $user_id,
'site_name' => get_bloginfo( 'name' ),
'url' => get_bloginfo( 'url' ),
'rest_prefix' => rest_get_url_prefix(),
)
);

Expand Down

0 comments on commit a5b3147

Please sign in to comment.