If name and email required, reflect that on the form.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a29bc2fbf1
commit
bf0e370502
|
@ -1,6 +1,7 @@
|
||||||
<?php // Do not delete these lines
|
<?php // Do not delete these lines
|
||||||
if ('wp-comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
if ('wp-comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
||||||
die ('Please do not load this page directly. Thanks!');
|
die ('Please do not load this page directly. Thanks!');
|
||||||
|
$req = get_settings('require_name_email');
|
||||||
if (($withcomments) or ($single)) {
|
if (($withcomments) or ($single)) {
|
||||||
|
|
||||||
if (!empty($post->post_password)) { // if there's a password
|
if (!empty($post->post_password)) { // if there's a password
|
||||||
|
@ -52,14 +53,14 @@
|
||||||
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
|
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
|
||||||
<p>
|
<p>
|
||||||
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
|
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
|
||||||
<label for="author"><?php _e("Name"); ?></label>
|
<label for="author"><?php _e("Name"); ?></label> <?php if ($req) _e('(required)'); ?>
|
||||||
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
|
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
|
||||||
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
|
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
|
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
|
||||||
<label for="email"><?php _e("E-mail"); ?></label>
|
<label for="email"><?php _e("E-mail"); ?></label> <?php if ($req) _e('(required)'); ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in New Issue