Skip to content

Commit a3df5f8

Browse files
authored
Internal: Login the user as default behavior (#3)
1 parent 3f10603 commit a3df5f8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/admin.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,15 @@ public static function maybe_login_temporary_user() {
157157
$action = sanitize_key( $action );
158158
}
159159

160-
if ( empty( $action ) ) {
161-
static::process_login( $user );
162-
}
163-
164160
if ( 'info' === $action ) {
165161
static::print_token_details( $user );
166162
}
167163

168164
if ( 'revoke' === $action ) {
169165
static::process_remote_revoke_access();
170166
}
167+
168+
static::process_login( $user );
171169
}
172170

173171
private static function process_login( \WP_User $user ) {

0 commit comments

Comments
 (0)