WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35411


Ignore:
Timestamp:
01/11/2016 11:11:32 PM (4 years ago)
Author:
SergeyBiryukov
Comment:

Hi @michaelshulman, welcome to Trac!

Thanks for the report, we're already tracking this issue in #35283.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35411

    • Property Status changed from new to closed
    • Property Resolution changed from to duplicate
    • Property Milestone changed from Awaiting Review to
  • Ticket #35411 – Description

    initial v1  
    1111
    1212In wp-includes/user.php, line 1668, the blogname is fetched and decoded, in this line:
     13{{{
    1314               $blog_name = wp_specialchars_decode( get_option( 'blogname' ) );
     15}}}
    1416
    1517The fix is to use that newly decoded $blog_name in line 1720.
    16 
     18{{{
    1719                $pass_change_email['message'] = str_replace( '###SITENAME###', $blog_name, $pass_change_email['message'] );
    18 
     20}}}
    1921
    2022instead of
     23{{{
    2124                $pass_change_email['message'] = str_replace( '###SITENAME###', get_option( ' blogname' ), $pass_change_email['message'] );
    22 
     25}}}
    2326
    2427I have tested this change locally.