Changeset 2513 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 04/03/2005 05:38:41 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r2497 r2513 26 26 27 27 function wp_loginout() { 28 global $user_ level;28 global $user_ID; 29 29 get_currentuserinfo(); 30 30 31 if ( 0 == $user_level) :31 if ('' == $user_ID) : 32 32 $link = '<a href="' . get_settings('siteurl') . '/wp-login.php">' . __('Login') . '</a>'; 33 33 else : … … 39 39 40 40 function wp_register( $before = '<li>', $after = '</li>' ) { 41 global $user_ level;41 global $user_ID; 42 42 43 43 get_currentuserinfo(); 44 44 45 if ( 0 == $user_level&& get_settings('users_can_register') ) :45 if ('' == $user_ID && get_settings('users_can_register') ) : 46 46 $link = $before . '<a href="' . get_settings('siteurl') . '/wp-register.php">' . __('Register') . '</a>' . $after; 47 elseif ( 0 == $user_level&& !get_settings('users_can_register') ) :47 elseif ('' == $user_ID && !get_settings('users_can_register') ) : 48 48 $link = ''; 49 49 else :
Note: See TracChangeset
for help on using the changeset viewer.