i18n fix from pandem. fixes #2028
git-svn-id: http://svn.automattic.com/wordpress/trunk@3272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9dc3881715
commit
9d4c41b823
|
@ -864,7 +864,8 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
|
||||||
return false;
|
return false;
|
||||||
} elseif( $author != '' && $email != '' ) {
|
} elseif( $author != '' && $email != '' ) {
|
||||||
$ok_to_comment = $wpdb->get_var("SELECT comment_approved FROM $wpdb->comments WHERE comment_author = '$author' AND comment_author_email = '$email' and comment_approved = '1' LIMIT 1");
|
$ok_to_comment = $wpdb->get_var("SELECT comment_approved FROM $wpdb->comments WHERE comment_author = '$author' AND comment_author_email = '$email' and comment_approved = '1' LIMIT 1");
|
||||||
if ( 1 == $ok_to_comment && false === strpos( $email, get_settings('moderation_keys')) )
|
if ( ( 1 == $ok_to_comment ) &&
|
||||||
|
( empty($mod_keys) || false === strpos( $email, $mod_keys) ) )
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -109,7 +109,7 @@ default:
|
||||||
<p><input type="hidden" name="action" value="register" />
|
<p><input type="hidden" name="action" value="register" />
|
||||||
<label for="user_login"><?php _e('Username:') ?></label><br /> <input type="text" name="user_login" id="user_login" size="20" maxlength="20" value="<?php echo $user_login; ?>" /><br /></p>
|
<label for="user_login"><?php _e('Username:') ?></label><br /> <input type="text" name="user_login" id="user_login" size="20" maxlength="20" value="<?php echo $user_login; ?>" /><br /></p>
|
||||||
<p><label for="user_email"><?php _e('E-mail:') ?></label><br /> <input type="text" name="user_email" id="user_email" size="25" maxlength="100" value="<?php echo $user_email; ?>" /></p>
|
<p><label for="user_email"><?php _e('E-mail:') ?></label><br /> <input type="text" name="user_email" id="user_email" size="25" maxlength="100" value="<?php echo $user_email; ?>" /></p>
|
||||||
<p>A password will be emailed to you.</p>
|
<p><?php _e('A password will be emailed to you.') ?></p>
|
||||||
<p class="submit"><input type="submit" value="<?php _e('Register') ?> »" id="submit" name="submit" /></p>
|
<p class="submit"><input type="submit" value="<?php _e('Register') ?> »" id="submit" name="submit" /></p>
|
||||||
</form>
|
</form>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in New Issue