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:
parent
846e05f727
commit
bd39132874
@ -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);
|
||||
|
||||
|
||||
1484
wp-login.php
1484
wp-login.php
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user