From b67063554d6ef789914604bf1c33d4ce4874858c Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 12 Jul 2004 06:24:08 +0000 Subject: [PATCH] Check for registration settings. git-svn-id: http://svn.automattic.com/wordpress/trunk@1460 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 26c08894a8..12de99ffbf 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -20,7 +20,7 @@ function wp_register() { get_currentuserinfo(); - if (0 == $user_level) : + if (0 == $user_level && get_settings('users_can_register') ) : $link = '' . __('Register') . ''; else : $link = '' . __('Site Admin') . '';