Post edit collision detection fixes from mdawaffe. fixes #6043
git-svn-id: http://svn.automattic.com/wordpress/trunk@7146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -113,6 +113,8 @@ function edit_post() {
|
||||
// Now that we have an ID we can fix any attachment anchor hrefs
|
||||
_fix_attachment_links( $post_ID );
|
||||
|
||||
wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
|
||||
|
||||
return $post_ID;
|
||||
}
|
||||
|
||||
@@ -321,6 +323,8 @@ function wp_write_post() {
|
||||
// Now that we have an ID we can fix any attachment anchor hrefs
|
||||
_fix_attachment_links( $post_ID );
|
||||
|
||||
wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
|
||||
|
||||
return $post_ID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user