wp_set_post_lock() only takes one argument. see #18515.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb21513a15
commit
d415ceabeb
|
@ -238,7 +238,7 @@ function edit_post( $post_data = null ) {
|
||||||
// Now that we have an ID we can fix any attachment anchor hrefs
|
// Now that we have an ID we can fix any attachment anchor hrefs
|
||||||
_fix_attachment_links( $post_ID );
|
_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 ( current_user_can( $ptype->cap->edit_others_posts ) ) {
|
||||||
if ( ! empty( $post_data['sticky'] ) )
|
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
|
// Now that we have an ID we can fix any attachment anchor hrefs
|
||||||
_fix_attachment_links( $post_ID );
|
_fix_attachment_links( $post_ID );
|
||||||
|
|
||||||
wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
|
wp_set_post_lock( $post_ID );
|
||||||
|
|
||||||
return $post_ID;
|
return $post_ID;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue