Changeset 20378 for trunk/wp-comments-post.php
- Timestamp:
- 04/06/2012 07:18:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r19712 r20378 55 55 // If the user is logged in 56 56 $user = wp_get_current_user(); 57 if ( $user-> ID) {57 if ( $user->exists() ) { 58 58 if ( empty( $user->display_name ) ) 59 59 $user->display_name=$user->user_login; … … 74 74 $comment_type = ''; 75 75 76 if ( get_option('require_name_email') && !$user-> ID) {76 if ( get_option('require_name_email') && !$user->exists() ) { 77 77 if ( 6 > strlen($comment_author_email) || '' == $comment_author ) 78 78 wp_die( __('<strong>ERROR</strong>: please fill the required fields (name, email).') );
Note: See TracChangeset
for help on using the changeset viewer.