Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#603 closed defect (bug) (fixed)

Site Admin should not show if registration is disabled.

Reported by: anonymousbugger's profile anonymousbugger Owned by: matt's profile matt
Milestone: Priority: normal
Severity: trivial Version: 1.5
Component: Template Keywords:
Focuses: Cc:

Description

If you have registration disabled and a user isn't logged in, it would be best not to show a link to Site Admin since there's a Login link right below it.

Change History (3)

#1 @anonymousbugger
20 years ago

  • Patch set to No

#2 @anonymousbugger
20 years ago

Eh, oops, should've escaped characters, lemme redo that, sorry.

if (0 == $user_level && get_settings('users_can_register') ) :

$link = '<a href="' . get_settings('siteurl') . '/sp-register.php">' . ('Register') . '</a>';

elseif (0 == $user_level && !get_settings('users_can_register') ) :

$link =;

else :

$link = '<a href="' . get_settings('siteurl') . '/sp-admin/">' . ('Site Admin') . '</a>';

endif;

#3 @matt
20 years ago

  • fixed_in_version set to 1.5
  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.