From 4b03f4253b389e183adf2b4a24c68181794f7c09 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 27 Sep 2011 06:11:30 +0000 Subject: [PATCH] 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 --- wp-admin/includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index adcffa6fe9..b204ef1cb4 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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; }