mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 16:43:06 +01:00
Remove extra curly.
git-svn-id: https://develop.svn.wordpress.org/trunk@3179 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d12afba42a
commit
83de96a484
@ -305,7 +305,7 @@ function upgrade_160() {
|
||||
$comments = $wpdb->get_results( "SELECT comment_post_ID, COUNT(*) as c FROM $wpdb->comments GROUP BY comment_post_ID" );
|
||||
if( is_array( $comments ) ) {
|
||||
foreach ($comments as $comment) {
|
||||
$wpdb->query( "UPDATE $wpdb->posts SET comment_count = $comment->c WHERE ID = '$comment->comment_post_ID}'" );
|
||||
$wpdb->query( "UPDATE $wpdb->posts SET comment_count = $comment->c WHERE ID = '$comment->comment_post_ID'" );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user