Ticket #20846: 20846.patch
File 20846.patch, 562 bytes (added by , 13 years ago) |
---|
-
wp-comments-post.php
55 55 // If the user is logged in 56 56 $user = wp_get_current_user(); 57 57 if ( $user->exists() ) { 58 if ( is_multisite() && ! is_user_member_of_blog() ) 59 wp_die( __('Sorry, you are not allowed to post comments on this site.') ); 58 60 if ( empty( $user->display_name ) ) 59 61 $user->display_name=$user->user_login; 60 62 $comment_author = $wpdb->escape($user->display_name);