Changeset 5039 for trunk/wp-comments-post.php
- Timestamp:
- 03/14/2007 11:10:57 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-comments-post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r4939 r5039 26 26 // If the user is logged in 27 27 $user = wp_get_current_user(); 28 if ( $user->ID ) :28 if ( $user->ID ) { 29 29 $comment_author = $wpdb->escape($user->display_name); 30 30 $comment_author_email = $wpdb->escape($user->user_email); 31 31 $comment_author_url = $wpdb->escape($user->user_url); 32 else : 32 if ( current_user_can('unfiltered_html') ) { 33 if ( wp_create_nonce('unfiltered-html-comment_' . $comment_post_ID) != $_POST['_wp_unfiltered_html_comment'] ) { 34 kses_remove_filters(); // start with a clean slate 35 kses_init_filters(); // set up the filters 36 } 37 } 38 } else { 33 39 if ( get_option('comment_registration') ) 34 40 wp_die( __('Sorry, you must be logged in to post a comment.') ); 35 endif; 41 } 36 42 37 43 $comment_type = '';
Note: See TracChangeset
for help on using the changeset viewer.