Ticket #5773: comment_date_key.diff
| File comment_date_key.diff, 2.0 kB (added by ryan, 7 months ago) |
|---|
-
wp-includes/version.php
old new 16 16 * 17 17 * @global int $wp_db_version 18 18 */ 19 $wp_db_version = 6 689;19 $wp_db_version = 6730; 20 20 21 21 ?> -
wp-includes/comment.php
old new 207 207 208 208 switch ( strtolower($timezone)) { 209 209 case 'gmt': 210 $lastcommentmodified = $wpdb->get_var("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date _gmtDESC LIMIT 1");210 $lastcommentmodified = $wpdb->get_var("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date DESC LIMIT 1"); 211 211 break; 212 212 case 'blog': 213 $lastcommentmodified = $wpdb->get_var("SELECT comment_date FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date _gmtDESC LIMIT 1");213 $lastcommentmodified = $wpdb->get_var("SELECT comment_date FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date DESC LIMIT 1"); 214 214 break; 215 215 case 'server': 216 216 $lastcommentmodified = $wpdb->get_var($wpdb->prepare("SELECT DATE_ADD(comment_date_gmt, INTERVAL %s SECOND) FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 1", $add_seconds_server)); -
wp-admin/includes/schema.php
old new 52 52 user_id bigint(20) NOT NULL default '0', 53 53 PRIMARY KEY (comment_ID), 54 54 KEY comment_approved (comment_approved), 55 KEY comment_post_ID (comment_post_ID) 55 KEY comment_post_ID (comment_post_ID), 56 KEY comment_approved_date (comment_approved,comment_date) 56 57 ) $charset_collate; 57 58 CREATE TABLE $wpdb->links ( 58 59 link_id bigint(20) NOT NULL auto_increment,
