Ticket #20846: 20846.2.patch
File 20846.2.patch, 1.3 KB (added by , 12 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); -
wp-includes/class-wp-xmlrpc-server.php
2632 2632 if ( !$user ) { 2633 2633 $logged_in = false; 2634 2634 if ( $allow_anon && get_option('comment_registration') ) 2635 return new IXR_Error( 403, __( ' You must be registered to comment' ) );2635 return new IXR_Error( 403, __( 'Sorry, you must be logged in to post a comment.' ) ); 2636 2636 else if ( !$allow_anon ) 2637 2637 return $this->error; 2638 2638 } else { 2639 if ( is_multisite() && ! is_user_member_of_blog() ) 2640 return new IXR_Error( 403, __( 'Sorry, you are not allowed to post comments on this site.' ) ); 2639 2641 $logged_in = true; 2640 2642 } 2641 2643