Make WordPress Core

Changeset 6389


Ignore:
Timestamp:
12/16/2007 09:20:18 PM (17 years ago)
Author:
ryan
Message:

Don't show both log out and session expired messages when logging out. see #5367

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r6387 r6389  
    309309        $user = wp_validate_auth_cookie();
    310310        if ( !$user ) {
    311             $errors['expiredsession'] = __('Your session has expired.');
     311            if ( empty($_GET['loggedout']) )
     312                $errors['expiredsession'] = __('Your session has expired.');
    312313        } else {
    313314            $user = new WP_User($user);
Note: See TracChangeset for help on using the changeset viewer.