Changeset 7645 for trunk/wp-comments-post.php
- Timestamp:
- 04/14/2008 04:13:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r6716 r7645 12 12 $comment_post_ID = (int) $_POST['comment_post_ID']; 13 13 14 $status = $wpdb->get_row( "SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = '$comment_post_ID'");14 $status = $wpdb->get_row( $wpdb->prepare("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = %d", $comment_post_ID) ); 15 15 16 16 if ( empty($status->comment_status) ) {
Note: See TracChangeset
for help on using the changeset viewer.