Make WordPress Core

Ticket #20846: 20846.patch

File 20846.patch, 562 bytes (added by SergeyBiryukov, 13 years ago)
  • wp-comments-post.php

     
    5555// If the user is logged in
    5656$user = wp_get_current_user();
    5757if ( $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.') );
    5860        if ( empty( $user->display_name ) )
    5961                $user->display_name=$user->user_login;
    6062        $comment_author       = $wpdb->escape($user->display_name);