Cambios hechos por Fernando

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@184 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-10-10 17:17:10 +00:00
parent 846e05f727
commit bd39132874
2 changed files with 744 additions and 746 deletions

View File

@ -858,7 +858,7 @@ function comments_template( $file = '/comments.php', $separate_comments = false
$file = '/comments.php';
$req = get_option('require_name_email');
/**
* Comment author information fetched from the comment cookies.
*
@ -889,12 +889,10 @@ function comments_template( $file = '/comments.php', $separate_comments = false
} else {
$comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND ( comment_approved = '1' OR ( comment_author = %s AND comment_author_email = %s AND comment_approved = '0' ) ) ORDER BY comment_date_gmt", $post->ID, wp_specialchars_decode($comment_author,ENT_QUOTES), $comment_author_email));
}
// keep $comments for legacy's sake
$wp_query->comments = apply_filters( 'comments_array', $comments, $post->ID );
$comments = &$wp_query->comments;
$wp_query->comment_count = count($wp_query->comments);
update_comment_cache($wp_query->comments);

File diff suppressed because it is too large Load Diff