So, as it turns out, due to multiple users being approved at the same time, the “approved message” option was losing the placeholders after the first iteration. I was not re-setting some code back to the default value. Because of this, on the 2nd pass and upwards, the placeholder replacement was not succeeding, and was retaining the replaced values from the first moderated user.
I have slated a fix for this to be part of version 4.3.4, but at the same time, I have a list of other things I’d like to get officially taken care of in 4.3.4 as well, so I’m not releasing officially quite yet.
However, I have provided a copy with just this one fix in place, for anyone here to use for the moment. It should be fully ready to install, but it will still show a version number of 4.3.3 at the moment.
https://www.dropbox.com/s/m2zkw75uum5kwum/bp-registration-options-hotfix.zip?dl=0
If you’re willing to attempt to read some code, here’s what got changed: https://github.com/WebDevStudios/BuddyPress-Registration-Options/commit/54755c0d89539cde297e582712cfc6ab6fb8d4c1
Lines in red are the old value, lines in green are the new value. Line 222 is the important one, because that’s where we re-set $message
back to the default version with the [user_name]
, etc values to be dynamically replaced.