mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Show the login form in a popup when autosave hits the login grace period, fixes #10704
git-svn-id: https://develop.svn.wordpress.org/trunk@12021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -891,6 +891,8 @@ case 'autosave' : // The name of this action is hardcoded in edit_post()
|
||||
$message = sprintf( __('Draft Saved at %s.'), date_i18n( $draft_saved_date_format ) );
|
||||
|
||||
$supplemental = array();
|
||||
if ( isset($login_grace_period) )
|
||||
$supplemental['session_expired'] = add_query_arg( 'interim-login', 1, wp_login_url() );
|
||||
|
||||
$id = $revision_id = 0;
|
||||
if($_POST['post_ID'] < 0) {
|
||||
|
||||
Reference in New Issue
Block a user