Support » Fixing WordPress » V1.5 Bug: Login tested using access level

  • I’ve found a bug in the CVS (20 jan): the wp_loginout funtions was incorectly made, here it’s my corrected code. Did i mention that access level is 0 for new users. The commented versios was telling that the user is not logged in even if it was.

    function wp_loginout() {
    // global $user_level;
    global $user_login;
    get_currentuserinfo();
    if (!$user_login) :
    // if (0 == $user_level) :
    $link = "<a href="" . get_settings("siteurl") . "/wp-login.php">" . __("Login") . "</a>";
    else :
    $link = "<a href="" . get_settings("siteurl") . "/wp-login.php?action=logout">" . __("Logout") . "</a>";
    endif;

    echo apply_filters("loginout", $link);
    }

    My second problem,: how can i get SVN or CVS access to the development repository? Can i get write access? I could add my company help.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘V1.5 Bug: Login tested using access level’ is closed to new replies.