Changeset 12388
- Timestamp:
- 12/13/2009 11:38:45 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/pluggable.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r12358 r12388 977 977 978 978 $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); 979 980 $blogname = get_option('blogname'); 979 980 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 981 // we want to reverse this for the plain text arena of emails. 982 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 981 983 982 984 if ( empty( $comment_type ) ) $comment_type = 'comment'; … … 1068 1070 $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); 1069 1071 $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'"); 1070 1072 1073 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 1074 // we want to reverse this for the plain text arena of emails. 1075 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1076 1071 1077 switch ($comment->comment_type) 1072 1078 { … … 1104 1110 $notify_message .= admin_url("edit-comments.php?comment_status=moderated") . "\r\n"; 1105 1111 1106 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title );1112 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), $blogname, $post->post_title ); 1107 1113 $admin_email = get_option('admin_email'); 1108 1114 $message_headers = ''; … … 1131 1137 if ( $user->user_email != get_option('admin_email') ) { 1132 1138 $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; 1133 wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_option('blogname')), $message);1139 wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), @html_entity_decode(get_option('blogname'), ENT_QUOTES, get_option('blog_charset'))), $message); 1134 1140 } 1135 1141 } … … 1150 1156 $user_login = stripslashes($user->user_login); 1151 1157 $user_email = stripslashes($user->user_email); 1152 1153 $message = sprintf(__('New user registration on your blog %s:'), get_option('blogname')) . "\r\n\r\n"; 1158 1159 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 1160 // we want to reverse this for the plain text arena of emails. 1161 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1162 1163 $message = sprintf(__('New user registration on your blog %s:'), $blogname) . "\r\n\r\n"; 1154 1164 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 1155 1165 $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; 1156 1166 1157 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), get_option('blogname')), $message);1167 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message); 1158 1168 1159 1169 if ( empty($plaintext_pass) ) … … 1164 1174 $message .= wp_login_url() . "\r\n"; 1165 1175 1166 wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message);1176 wp_mail($user_email, sprintf(__('[%s] Your username and password'), $blogname), $message); 1167 1177 1168 1178 }
Note: See TracChangeset
for help on using the changeset viewer.