Changeset 40632 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 05/11/2017 07:14:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r40579 r40632 326 326 $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'options.php?adminhash='.$hash ) ), $content ); 327 327 $content = str_replace( '###EMAIL###', $value, $content ); 328 $content = str_replace( '###SITENAME###', get_site_option( 'site_name'), $content );328 $content = str_replace( '###SITENAME###', wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ), $content ); 329 329 $content = str_replace( '###SITEURL###', network_home_url(), $content ); 330 330 331 wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content );331 wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ), $content ); 332 332 333 333 if ( $switched_locale ) { … … 411 411 $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'profile.php?newuseremail=' . $hash ) ), $content ); 412 412 $content = str_replace( '###EMAIL###', $_POST['email'], $content); 413 $content = str_replace( '###SITENAME###', get_site_option( 'site_name'), $content );413 $content = str_replace( '###SITENAME###', wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ), $content ); 414 414 $content = str_replace( '###SITEURL###', network_home_url(), $content ); 415 415 416 wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content );416 wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ), $content ); 417 417 $_POST['email'] = $current_user->user_email; 418 418
Note: See TracChangeset
for help on using the changeset viewer.