WordPress.org

Ready to get started?Download WordPress

Forums

V1.5 Bug: Login tested using access level (3 posts)

  1. Sorin
    Member
    Posted 9 years ago #

    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.

  2. NuclearMoose
    Member
    Posted 9 years ago #

    CVS info is at the bottom of this page:
    http://wordpress.org/download/

    Mailing list info:
    http://wordpress.org/mailman/listinfo/

    As for write access and developer involvement, contact Matt directly: mailto:m@wordpress.org

  3. durangod
    Member
    Posted 9 years ago #

    Had to do a little quote-tweaking, but this worked for me. Thanks, Intersol!

    function wp_loginout() {
    // global $user_level;
    global $user_login;
    get_currentuserinfo();
    if (!$user_login) :
    // if (0 == $user_level) :
    $link = '' . __('Login') . '';
    else :
    $link = '' . __('Logout') . '';
    endif;

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.