Make WordPress Core

Changeset 20887


Ignore:
Timestamp:
05/24/2012 09:22:09 PM (13 years ago)
Author:
nacin
Message:

When auth_redirect() detects a logged out user and the target
page was about.php?updated, then issue a message welcoming them.

This is to prevent it from being so jolting if you are taken to
the login screen after an update.

In WordPress 3.4, the changes to wp_salt() provide for extra
security, but will cause a log-out for any installs without 8
unique keys and salts in wp-config.php (with some exceptions).
Properly re-issuing cookies, even for the logged in user, is
not easily doable via admin/includes/update-core.php, as that
file is included long after the headers are sent.

see #19599.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r20430 r20887  
    635635    elseif  ( $interim_login )
    636636        $errors->add('expired', __('Your session has expired. Please log-in again.'), 'message');
     637    elseif ( strpos( $redirect_to, 'about.php?updated' ) )
     638        $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to experience the awesomeness.' ), 'message' );
    637639
    638640    // Clear any stale cookies.
Note: See TracChangeset for help on using the changeset viewer.