Ticket #34954: 34954.patch
| File 34954.patch, 499 bytes (added by , 10 years ago) |
|---|
-
wp-includes/comment.php
1904 1904 } 1905 1905 1906 1906 // Make sure that the comment post ID is valid (if specified). 1907 if ( isset( $commentarr['comment_post_ID'] ) && ! get_post( $commentarr['comment_post_ID'] ) ) {1907 if ( ! empty( $commentarr['comment_post_ID'] ) && ! get_post( $commentarr['comment_post_ID'] ) ) { 1908 1908 return 0; 1909 1909 } 1910 1910