Make WordPress Core

Changeset 5139


Ignore:
Timestamp:
03/29/2007 02:30:57 AM (18 years ago)
Author:
rob1n
Message:

Change the message when registration isn't enabled to reflect that. Props markjaquith. fixes #3640

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r4944 r5139  
    451451<div class="narrow">
    452452
    453 <?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>'; ?>
     453<?php
     454    if ( get_option('users_can_register') )
     455        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>';
     456    else
     457        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>';
     458?>
    454459<form action="#add-new-user" method="post" name="adduser" id="adduser">
    455460<?php wp_nonce_field('add-user') ?>
Note: See TracChangeset for help on using the changeset viewer.