mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
wp_set_post_lock() only takes one argument. see #18515.
git-svn-id: https://develop.svn.wordpress.org/trunk@18790 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e0889f848c
commit
4b03f4253b
@ -238,7 +238,7 @@ function edit_post( $post_data = null ) {
|
||||
// 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 );
|
||||
wp_set_post_lock( $post_ID );
|
||||
|
||||
if ( current_user_can( $ptype->cap->edit_others_posts ) ) {
|
||||
if ( ! empty( $post_data['sticky'] ) )
|
||||
@ -634,7 +634,7 @@ 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 );
|
||||
wp_set_post_lock( $post_ID );
|
||||
|
||||
return $post_ID;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user