Check for registration settings.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-07-12 06:24:08 +00:00
parent 724a294df6
commit b67063554d

View File

@ -20,7 +20,7 @@ function wp_register() {
get_currentuserinfo();
if (0 == $user_level) :
if (0 == $user_level && get_settings('users_can_register') ) :
$link = '<a href="' . get_settings('siteurl') . '/wp-register.php">' . __('Register') . '</a>';
else :
$link = '<a href="' . get_settings('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>';