That added a “Add Friend” button and “Message User” button to each user entry.
However, recently, the “Add Friend” button has inexplicably disappeared. I just rolled back the old version of the site from a month ago, and the button was still there. I used a diffchecker to compare the code for both versions of the site, for both the member directory and functions.php. There were zero differences. All the same code.