Release a user's post lock when the user leaves a post. see #18515.

git-svn-id: https://develop.svn.wordpress.org/trunk@18796 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-09-27 20:52:07 +00:00
parent ad6e08124f
commit 35edc4264d
7 changed files with 56 additions and 7 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ case 'edit':
if ( $last = wp_check_post_lock( $post->ID ) ) {
add_action('admin_notices', '_admin_notice_post_locked' );
} else {
wp_set_post_lock( $post->ID );
$active_post_lock = wp_set_post_lock( $post->ID );
wp_enqueue_script('autosave');
}