Changeset 7645 for trunk/wp-admin/edit.php
- Timestamp:
- 04/14/2008 04:13:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r7625 r7645 206 206 if ( 1 == count($posts) && is_singular() ) : 207 207 208 $comments = $wpdb->get_results( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date");208 $comments = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved != 'spam' ORDER BY comment_date", $id) ); 209 209 if ( $comments ) : 210 210 // Make sure comments, post, and post_author are cached
Note: See TracChangeset
for help on using the changeset viewer.