Changeset 7165 for trunk/wp-admin/includes/post.php
- Timestamp:
- 03/06/2008 06:07:53 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r7162 r7165 19 19 $now = time(); 20 20 $then = strtotime($post->post_date_gmt . ' +0000'); 21 $delta = get_option( 'autosave_interval' )/ 2;21 $delta = AUTOSAVE_INTERVAL / 2; 22 22 if ( ($now - $then) < $delta ) 23 23 return $post_ID; … … 655 655 $last = get_post_meta( $post->ID, '_edit_last', true ); 656 656 657 $time_window = apply_filters( 'wp_check_post_lock_window', get_option( 'autosave_interval' )* 2 );657 $time_window = apply_filters( 'wp_check_post_lock_window', AUTOSAVE_INTERVAL * 2 ); 658 658 659 659 if ( $lock && $lock > time() - $time_window && $last != $current_user->ID )
Note: See TracChangeset
for help on using the changeset viewer.