Make WordPress Core

Changeset 23699


Ignore:
Timestamp:
03/14/2013 09:31:02 PM (12 years ago)
Author:
azaozz
Message:

Logged out warnings: remove the logged out warning from autosave when in login_grace_period, see #23295

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r23692 r23699  
    10351035
    10361036function wp_ajax_autosave() {
    1037     global $login_grace_period;
    1038 
    10391037    define( 'DOING_AUTOSAVE', true );
    10401038
     
    10471045    $do_autosave = (bool) $_POST['autosave'];
    10481046    $do_lock = true;
    1049 
    1050     $data = $alert = '';
     1047    $data = '';
     1048    $supplemental = array();
     1049    $id = $revision_id = 0;
     1050
    10511051    /* translators: draft saved date format, see http://php.net/date */
    10521052    $draft_saved_date_format = __('g:i:s a');
    10531053    /* translators: %s: date and time */
    10541054    $message = sprintf( __('Draft saved at %s.'), date_i18n( $draft_saved_date_format ) );
    1055 
    1056     $supplemental = array();
    1057     if ( isset($login_grace_period) )
    1058         $alert .= sprintf( __('Your login has expired. Please open a new browser window and <a href="%s" target="_blank">log in again</a>. '), add_query_arg( 'interim-login', 1, wp_login_url() ) );
    1059 
    1060     $id = $revision_id = 0;
    10611055
    10621056    $post_id = (int) $_POST['post_id'];
     
    11171111        }
    11181112    }
    1119 
    1120     if ( ! empty($alert) )
    1121         $supplemental['alert'] = $alert;
    11221113
    11231114    $x = new WP_Ajax_Response( array(
Note: See TracChangeset for help on using the changeset viewer.