Ticket #25346: 25346.diff
File 25346.diff, 6.7 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/class-wp-upgrader.php
2312 2312 */ 2313 2313 $email = apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result ); 2314 2314 2315 wp_mail( $email['to'], $email['subject'], $email['body'], $email['headers'] );2315 wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] ); 2316 2316 } 2317 2317 2318 2318 /** … … 2461 2461 */ 2462 2462 $email = apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results ); 2463 2463 2464 wp_mail( $email['to'], $email['subject'], $email['body'], $email['headers'] );2464 wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] ); 2465 2465 } 2466 2466 } -
src/wp-admin/includes/ms.php
259 259 $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content ); 260 260 $content = str_replace( '###SITEURL###', network_home_url(), $content ); 261 261 262 wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), get_option( 'blogname') ), $content );262 wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); 263 263 } 264 264 add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); 265 265 add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); … … 328 328 $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content ); 329 329 $content = str_replace( '###SITEURL###', network_home_url(), $content ); 330 330 331 wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), get_option( 'blogname') ), $content );331 wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); 332 332 $_POST['email'] = $current_user->user_email; 333 333 } 334 334 } -
src/wp-admin/ms-delete-site.php
68 68 $content = str_replace( '###URL_DELETE###', $url_delete, $content ); 69 69 $content = str_replace( '###SITE_NAME###', $current_site->site_name, $content ); 70 70 71 wp_mail( get_option( 'admin_email' ), "[ " . get_option( 'blogname') . " ] ".__( 'Delete My Site' ), $content );71 wp_mail( get_option( 'admin_email' ), "[ " . wp_specialchars_decode( get_option( 'blogname' ) ) . " ] ".__( 'Delete My Site' ), $content ); 72 72 ?> 73 73 74 74 <p><?php _e( 'Thank you. Please check your email for a link to confirm your action. Your site will not be deleted until this link is clicked. ') ?></p> -
src/wp-admin/user-new.php
85 85 86 86 Please click the following link to confirm the invite: 87 87 %4$s' ); 88 wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), get_option( 'blogname') ), sprintf( $message, get_option( 'blogname' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ), home_url( "/newbloguser/$newuser_key/" ) ) );88 wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), sprintf( $message, get_option( 'blogname' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ), home_url( "/newbloguser/$newuser_key/" ) ) ); 89 89 $redirect = add_query_arg( array('update' => 'add'), 'user-new.php' ); 90 90 } 91 91 } -
src/wp-includes/ms-functions.php
880 880 $from_name, 881 881 esc_url( 'http://' . $domain . $path ) 882 882 ); 883 wp_mail( $user_email, $subject, $message, $message_headers);883 wp_mail( $user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 884 884 return true; 885 885 } 886 886 … … 965 965 $from_name, 966 966 $user 967 967 ); 968 wp_mail( $user_email, $subject, $message, $message_headers);968 wp_mail( $user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 969 969 return true; 970 970 } 971 971 … … 1519 1519 * @param string $subject Subject of the email. 1520 1520 */ 1521 1521 $subject = apply_filters( 'update_welcome_subject', sprintf( __( 'New %1$s Site: %2$s' ), $current_site->site_name, wp_unslash( $title ) ) ); 1522 wp_mail( $user->user_email, $subject, $message, $message_headers);1522 wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 1523 1523 return true; 1524 1524 } 1525 1525 … … 1597 1597 * @param string $subject Subject of the email. 1598 1598 */ 1599 1599 $subject = apply_filters( 'update_welcome_user_subject', sprintf( __( 'New %1$s User: %2$s' ), $current_site->site_name, $user->user_login) ); 1600 wp_mail( $user->user_email, $subject, $message, $message_headers);1600 wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 1601 1601 return true; 1602 1602 } 1603 1603 -
src/wp-includes/pluggable.php
1156 1156 $message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment_id ); 1157 1157 1158 1158 foreach ( $emails as $email ) { 1159 @wp_mail( $email, $subject, $notify_message, $message_headers );1159 @wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers ); 1160 1160 } 1161 1161 1162 1162 return true; … … 1243 1243 $message_headers = apply_filters( 'comment_moderation_headers', $message_headers, $comment_id ); 1244 1244 1245 1245 foreach ( $emails as $email ) { 1246 @wp_mail( $email, $subject, $notify_message, $message_headers );1246 @wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers ); 1247 1247 } 1248 1248 1249 1249 return true; -
src/wp-login.php
388 388 */ 389 389 $message = apply_filters( 'retrieve_password_message', $message, $key ); 390 390 391 if ( $message && !wp_mail( $user_email, $title, $message) )391 if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) 392 392 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') ); 393 393 394 394 return true;