Changeset 10446
- Timestamp:
- 01/26/2009 10:34:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r10445 r10446 1922 1922 $post = (int) $post; 1923 1923 $count = wp_count_comments(); 1924 1924 $index = ''; 1925 1925 1926 if ( 'moderated' == $status ) { 1926 1927 $approved = "comment_approved = '0'"; … … 1935 1936 $approved = "( comment_approved = '0' OR comment_approved = '1' )"; 1936 1937 $total = $count->moderated + $count->approved; 1938 $index = 'USE INDEX (comment_date_gmt)'; 1937 1939 } 1938 1940 … … 1972 1974 $typesql"; 1973 1975 } else { 1974 $query = "FROM $wpdb->comments USE INDEX (comment_date_gmt)WHERE $approved $post $typesql";1976 $query = "FROM $wpdb->comments $index WHERE $approved $post $typesql"; 1975 1977 } 1976 1978
Note: See TracChangeset
for help on using the changeset viewer.