Ticket #10758: 10758-wp-comments-post.patch
File 10758-wp-comments-post.patch, 564 bytes (added by , 14 years ago) |
---|
-
wp-comments-post.php
### Eclipse Workspace Patch 1.0 #P wordpress-trunk
17 17 18 18 nocache_headers(); 19 19 20 $comment_post_ID = (int) $_POST['comment_post_ID'];20 $comment_post_ID = isset ($_POST['comment_post_ID']) ? (int) $_POST['comment_post_ID'] : null; 21 21 22 22 $status = $wpdb->get_row( $wpdb->prepare("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = %d", $comment_post_ID) ); 23 23