| | 1672 | |
| | 1673 | //send password change notification to the user |
| | 1674 | } else { |
| | 1675 | /* translators: Do not translate USERNAME, ADMIN_EMAIL, EMAIL, SITENAME, SITEURL: those are placeholders. */ |
| | 1676 | $email_text = __( 'Howdy ###USERNAME###, |
| | 1677 | |
| | 1678 | This notice is confirming you recently changed your password on ###SITENAME###. |
| | 1679 | |
| | 1680 | If you did not change your password, please contact the Site Administrator at |
| | 1681 | ###ADMIN_EMAIL### |
| | 1682 | |
| | 1683 | This email has been sent to ###EMAIL### |
| | 1684 | |
| | 1685 | Regards, |
| | 1686 | All at ###SITENAME### |
| | 1687 | ###SITEURL###' ); |
| | 1688 | |
| | 1689 | /** |
| | 1690 | * Filter the email text sent when the user's password is changed. |
| | 1691 | * |
| | 1692 | * The following strings have a special meaning and will get replaced dynamically: |
| | 1693 | * ###USERNAME### The current user's username. |
| | 1694 | * ###ADMIN_EMAIL### The link to click on to confirm the email change. |
| | 1695 | * ###EMAIL### The new email. |
| | 1696 | * ###SITENAME### The name of the site. |
| | 1697 | * ###SITEURL### The URL to the site. |
| | 1698 | * |
| | 1699 | * @since 4.3 |
| | 1700 | * |
| | 1701 | * @param string $email_text Text in the email. |
| | 1702 | */ |
| | 1703 | $content = apply_filters( 'user_password_change_email_content', $email_text ); |
| | 1704 | |
| | 1705 | $content = str_replace( '###USERNAME###', $user->user_login, $content ); |
| | 1706 | $content = str_replace( '###ADMIN_EMAIL###', get_option( 'admin_email' ), $content ); |
| | 1707 | $content = str_replace( '###EMAIL###', $user->user_email, $content ); |
| | 1708 | $content = str_replace( '###SITENAME###', get_option( 'blogname' ), $content ); |
| | 1709 | $content = str_replace( '###SITEURL###', get_option( 'siteurl' ), $content ); |
| | 1710 | |
| | 1711 | wp_mail( $user->user_email, sprintf( __( '[%s] Notice of Password Change' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); |