Changeset 12284 for trunk/wp-comments-post.php
- Timestamp:
- 11/26/2009 11:29:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r12267 r12284 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'] : 0; 21 21 22 22 $status = $wpdb->get_row( $wpdb->prepare("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = %d", $comment_post_ID) );
Note: See TracChangeset
for help on using the changeset viewer.