Skip to content

Commit

Permalink
Mentors: Maintain key association to show username
Browse files Browse the repository at this point in the history
0899c70 introduced a bug where the array was no long keyed by the username, so the `Username` column in the table showed a numeric array index instead of the username.
  • Loading branch information
iandunn committed Jul 21, 2023
1 parent 0899c70 commit b2b993c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/wp-content/plugins/wcpt/mentors/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ function get_all_mentor_data() {
$data = array_merge( $data, get_mentor_data( $username ) );
}

usort(
uasort(
$data,
function( $a, $b ) {
return strnatcasecmp( $a['name'], $b['name'] );
Expand Down

0 comments on commit b2b993c

Please sign in to comment.