Change the message when registration isn't enabled to reflect that. Props markjaquith. fixes #3640
git-svn-id: http://svn.automattic.com/wordpress/trunk@5139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
347657de7e
commit
949312bf0b
|
@ -450,7 +450,12 @@ foreach ( (array) $roleclass as $user_object ) {
|
||||||
|
|
||||||
<div class="narrow">
|
<div class="narrow">
|
||||||
|
|
||||||
<?php echo '<p>'.sprintf(__('Users can <a href="%1$s">register themselves</a> or you can manually create users here.'), get_option('siteurl').'/wp-login.php?action=register').'</p>'; ?>
|
<?php
|
||||||
|
if ( get_option('users_can_register') )
|
||||||
|
echo '<p>' . sprintf(__('Users can <a href="%1$s">register themselves</a> or you can manually create users here.'), get_option('siteurl').'/wp-register.php') . '</p>';
|
||||||
|
else
|
||||||
|
echo '<p>' . sprintf(__('Users cannot currently <a href="%1$s">register themselves</a>, but you can manually create users here.'), get_option('siteurl').'/wp-admin/options-general.php#users_can_register') . '</p>';
|
||||||
|
?>
|
||||||
<form action="#add-new-user" method="post" name="adduser" id="adduser">
|
<form action="#add-new-user" method="post" name="adduser" id="adduser">
|
||||||
<?php wp_nonce_field('add-user') ?>
|
<?php wp_nonce_field('add-user') ?>
|
||||||
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
|
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
|
||||||
|
|
Loading…
Reference in New Issue