Skip to content

Commit

Permalink
Merge pull request #155 from 10up/fix/134-incorrect-roll-fallback
Browse files Browse the repository at this point in the history
Fix | Incorrect Role Fallback
  • Loading branch information
darylldoyle authored Mar 28, 2024
2 parents 0ed9e9a + ac07484 commit b3222b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/SupportMonitor/ActivityLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function updated_user_meta( $meta_id, $user_id, $meta_key ) {
* @param array $userdata The raw array of data passed to wp_insert_user().
*/
public function user_register( $user_id, $userdata ) {
$role = ( ! empty( $userdata['role'] ) ) ? $userdata['role'] : 'Subscriber';
$role = ( ! empty( $userdata['role'] ) ) ? $userdata['role'] : 'n/a';
Monitor::instance()->log(
[
'action' => 'user_register',
Expand Down

0 comments on commit b3222b0

Please sign in to comment.