Changeset 26115 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 11/13/2013 02:40:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r26114 r26115 1142 1142 $user = get_userdata( $post->post_author ); 1143 1143 // Send to the administration and to the post author if the author can modify the comment. 1144 $emails = array( get_option('admin_email') ); 1145 if ( user_can($user->ID, 'edit_comment', $comment_id) && !empty($user->user_email) && ( get_option('admin_email') != $user->user_email) ) 1146 $emails[] = $user->user_email; 1144 $emails = array( get_option( 'admin_email' ) ); 1145 if ( user_can( $user->ID, 'edit_comment', $comment_id ) && ! empty( $user->user_email ) ) { 1146 if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) 1147 $emails[] = $user->user_email; 1148 } 1147 1149 1148 1150 $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); … … 1217 1219 // send a copy of password change notification to the admin 1218 1220 // but check to see if it's the admin whose password we're changing, and skip this 1219 if ( $user->user_email != get_option('admin_email') ) {1221 if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) { 1220 1222 $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; 1221 1223 // The blogname option is escaped with esc_html on the way into the database in sanitize_option
Note: See TracChangeset
for help on using the changeset viewer.