Ticket #9913: html_entity_decode_blogname.diff
File html_entity_decode_blogname.diff, 2.7 KB (added by , 15 years ago) |
---|
-
pluggable.php
977 977 978 978 $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); 979 979 980 $blogname = get_option('blogname');980 $blogname = @html_entity_decode(get_option('blogname'), ENT_QUOTES, get_option('blog_charset')); 981 981 982 982 if ( empty( $comment_type ) ) $comment_type = 'comment'; 983 983 … … 1103 1103 'Currently %s comments are waiting for approval. Please visit the moderation panel:', $comments_waiting), number_format_i18n($comments_waiting) ) . "\r\n"; 1104 1104 $notify_message .= admin_url("edit-comments.php?comment_status=moderated") . "\r\n"; 1105 1105 1106 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title );1106 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), @html_entity_decode(get_option('blogname'), ENT_QUOTES, get_option('blog_charset')), $post->post_title ); 1107 1107 $admin_email = get_option('admin_email'); 1108 1108 $message_headers = ''; 1109 1109 … … 1130 1130 // but check to see if it's the admin whose password we're changing, and skip this 1131 1131 if ( $user->user_email != get_option('admin_email') ) { 1132 1132 $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);1133 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 1134 } 1135 1135 } 1136 1136 endif; … … 1149 1149 1150 1150 $user_login = stripslashes($user->user_login); 1151 1151 $user_email = stripslashes($user->user_email); 1152 $blogname = @html_entity_decode(get_option('blogname'), ENT_QUOTES, get_option('blog_charset')); 1152 1153 1153 $message = sprintf(__('New user registration on your blog %s:'), get_option('blogname')) . "\r\n\r\n";1154 $message = sprintf(__('New user registration on your blog %s:'), $blogname) . "\r\n\r\n"; 1154 1155 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 1155 1156 $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; 1156 1157 1157 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), get_option('blogname')), $message);1158 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message); 1158 1159 1159 1160 if ( empty($plaintext_pass) ) 1160 1161 return; … … 1163 1164 $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n"; 1164 1165 $message .= wp_login_url() . "\r\n"; 1165 1166 1166 wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message);1167 wp_mail($user_email, sprintf(__('[%s] Your username and password'), $blogname), $message); 1167 1168 1168 1169 } 1169 1170 endif;