[wp-trac] [WordPress Trac] #35283: Apostrophe's in blog title presented as ' in some system emails
WordPress Trac
noreply at wordpress.org
Fri Jan 1 22:50:54 UTC 2016
#35283: Apostrophe's in blog title presented as ' in some system emails
--------------------------+-----------------------------
Reporter: dreamwhisper | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 4.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When an admin changes the password or email address for a user, emails are
fired off to the user for those actions.
If a site name includes an apostrophe, it is presented as ' in those
emails (Notice of Password Change and Notice of Email Change).
Example:
> Subject: [Someone's site] Notice of Password Change
> Hi username,
>
> This notice confirms that your password was changed on Someone's
site.
>
> If you did not change your password, please contact the Site
Administrator at admin at example.com
>
> This email has been sent to useremail at example.com
>
> Regards,
> All at Someone's site
> http://example.com
In wp-includes/user.php
Testing these changes to lines 1668, 1720, and 1774 resolves the issue on
2 sites tested.
Line 1668
{{{
$blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES
);
}}}
Line 1720
{{{
$pass_change_email['message'] = str_replace( '###SITENAME###',
wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ),
$pass_change_email['message'] );
}}}
Line 1774
{{{
$email_change_email['message'] = str_replace( '###SITENAME###',
wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ),
$email_change_email['message'] );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35283>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list