Changeset 23699
- Timestamp:
- 03/14/2013 09:31:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23692 r23699 1035 1035 1036 1036 function wp_ajax_autosave() { 1037 global $login_grace_period;1038 1039 1037 define( 'DOING_AUTOSAVE', true ); 1040 1038 … … 1047 1045 $do_autosave = (bool) $_POST['autosave']; 1048 1046 $do_lock = true; 1049 1050 $data = $alert = ''; 1047 $data = ''; 1048 $supplemental = array(); 1049 $id = $revision_id = 0; 1050 1051 1051 /* translators: draft saved date format, see http://php.net/date */ 1052 1052 $draft_saved_date_format = __('g:i:s a'); 1053 1053 /* translators: %s: date and time */ 1054 1054 $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;1061 1055 1062 1056 $post_id = (int) $_POST['post_id']; … … 1117 1111 } 1118 1112 } 1119 1120 if ( ! empty($alert) )1121 $supplemental['alert'] = $alert;1122 1113 1123 1114 $x = new WP_Ajax_Response( array(
Note: See TracChangeset
for help on using the changeset viewer.