Changeset 9541
- Timestamp:
- 11/06/2008 02:05:59 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r9518 r9541 518 518 if ( empty($status) ) 519 519 die('1'); 520 elseif ( in_array($status ->post_status, array('draft', 'pending') ) )521 die( __('Error: you are replying to comment on a draft post.') );520 elseif ( in_array($status, array('draft', 'pending') ) ) 521 die( __('Error: you are replying to a comment on a draft post.') ); 522 522 523 523 $user = wp_get_current_user(); -
trunk/wp-includes/comment.php
r9522 r9541 850 850 if ( ! isset($user_id) ) 851 851 $user_id = 0; 852 if ( ! isset($comment_type) ) 853 $comment_type = ''; 852 854 853 855 $result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->comments
Note: See TracChangeset
for help on using the changeset viewer.