Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Patch WordPress Reset Password Vulnerability
add_filter( 'wp_mail_from', 'baw_fix_wp_474_mail_reset_vulnerability' );
function baw_fix_wp_474_mail_reset_vulnerability( $from_email ) {
return 'wordpress@example.com';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment