mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-10 09:31:54 +01:00
Check for registration settings.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
724a294df6
commit
b67063554d
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user