mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Check for registration settings.
git-svn-id: https://develop.svn.wordpress.org/trunk@1460 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25095a256a
commit
0b2b99ea65
@ -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