Changeset 23661 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 03/12/2013 03:22:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23639 r23661 1058 1058 1059 1059 if ( $last = wp_check_post_lock( $post->ID ) ) { 1060 // This will change after we have per-user autosaves 1060 1061 $do_autosave = $do_lock = false; 1061 1062 … … 1065 1066 1066 1067 $supplemental['disable_autosave'] = 'disable'; 1067 $alert .= sprintf( __( '%s is currently editing this article. If you update it, you will overwrite the changes.' ), esc_html( $last_user_name ) );1068 1068 } 1069 1069 … … 1093 1093 else 1094 1094 $id = $post->ID; 1095 }1096 1097 if ( $do_lock && empty( $_POST['auto_draft'] ) && $id && is_numeric( $id ) ) {1098 $lock_result = wp_set_post_lock( $id );1099 $supplemental['active-post-lock'] = implode( ':', $lock_result );1100 1095 } 1101 1096 … … 1778 1773 wp_die( 0 ); 1779 1774 1780 $new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', AUTOSAVE_INTERVAL * 2) + 5 ) . ':' . $active_lock[1];1775 $new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 120 ) + 5 ) . ':' . $active_lock[1]; 1781 1776 update_post_meta( $post_id, '_edit_lock', $new_lock, implode( ':', $active_lock ) ); 1782 1777 wp_die( 1 );
Note: See TracChangeset
for help on using the changeset viewer.