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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2011-09-27 20:52:07 +00:00
parent b171681162
commit de8cc0eae1
7 changed files with 56 additions and 7 deletions

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');
}