Custom E-mail %reseturl%
-
Good day. Kudos for all of your work on the new version and the fast turns on fixes!
I’m running WP 3.5.1 and just upgraded to TML 6.3.5. Mult-site, subdomains.
When using Theme My Login Custom E-mail, the variable %reseturl% does not seem to be pulling the new TML-page for the Reset Password link provided via this variable.
It’s presenting a link in the email that starts with wp-login? versus reset-password? (or whatever the named slug is under the TML pages)
I hunted around and found that in lines 290-300 in custom-email.php under modules/custom-email the following is present.
public function retrieve_pass_message_filter( $message, $key, $user_id ) { $_message = $this->get_option( array( 'retrieve_pass', 'message' ) ); if ( ! empty( $_message ) ) { $user = get_user_by( 'id', $user_id ); $message = Theme_My_Login_Common::replace_vars( $_message, $user_id, array( '%loginurl%' => site_url( 'wp-login', 'login' ), '%reseturl%' => site_url( "wp-login?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) ) ); } return $message; }For my instance in the interim to get it up and running, I just replaced wp-login with the TML page slug I’m using. This is obviously not a long term solution as I don’t want to mess with your code but I also didn’t/couldn’t move back in versions easily do to the big changes in 6.3+
This was not the case before as I have record of the correct email links going out yesterday, which was before I upgraded to 6.3.5. I was previously using 6.2.3 before this issue appeared.
Thanks for you thoughts and suggestions. Happy to test on this end however I can to be of assisance.
The topic ‘Custom E-mail %reseturl%’ is closed to new replies.