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') . '';