Skip to content

Commit c8cd8c8

Browse files
committed
Comments: Add back $req variable in comments_template().
The variables in `comments_template()` should never be assumed to be unused. This function includes the `comments.php` template file from the active theme or falls back to `theme-compat/comments.php`. This is why including a file within a function only brings pain and sorrow. Reverts r36322. See #35473. git-svn-id: https://develop.svn.wordpress.org/trunk@36425 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d95233c commit c8cd8c8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/wp-includes/comment-template.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,8 @@ function comments_template( $file = '/comments.php', $separate_comments = false
12561256
if ( empty($file) )
12571257
$file = '/comments.php';
12581258

1259+
$req = get_option('require_name_email');
1260+
12591261
/*
12601262
* Comment author information fetched from the comment cookies.
12611263
*/

0 commit comments

Comments
 (0)