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:
Andrew Ozz
2009-10-11 11:26:59 +00:00
parent 2dc1de999c
commit 8e956b6488
8 changed files with 63 additions and 23 deletions
+2
View File
@@ -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) {