Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Display login form even when registration is disabled

  • Loading branch information...
commit f81fc0a568c0eea4d8e9e6ec9faa5cc1bb2c8d16 1 parent 56c7a2f
@craigcook craigcook authored
Showing with 2 additions and 3 deletions.
  1. +1 −2  themes/QMO4/user-state.php
  2. +1 −1  themes/QMO5/user-state.php
View
3  themes/QMO4/user-state.php
@@ -17,14 +17,13 @@
<?php endif; ?>
<li class="user-logout"><a href="<?php echo wp_logout_url($_SERVER['REQUEST_URI']); ?>">Log Out</a></li>
</ul>
-<?php elseif ( get_option('users_can_register') ) : ?>
+<?php else : ?>
<form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
<ul class="login">
<li><label for="log">Username</label> <input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>"></li>
<li><label for="pwd">Password</label> <input type="password" name="pwd" id="pwd"></li>
<li class="check"><label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" value="forever"> Remember me</label></li>
<li class="submit"><button type="submit" name="submit" class="button">Log in</button></li>
- <li class="signup"><strong><a href="<?php echo bp_get_signup_page(false); ?>" title="<?php _e('Not registered? Sign up!', 'qmo'); ?>"><?php _e('Sign up', 'qmo'); ?></a></strong></li>
</ul>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>">
</form>
View
2  themes/QMO5/user-state.php
@@ -15,7 +15,7 @@
<li class="user-logout"><a href="<?php echo wp_logout_url($_SERVER['REQUEST_URI']); ?>">Log Out</a></li>
</ul>
</div>
-<?php elseif ( get_option('users_can_register') ) : ?>
+<?php else : ?>
<div id="user-state">
<form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
<ul class="login">

0 comments on commit f81fc0a

Please sign in to comment.
Something went wrong with that request. Please try again.