From 2c0b23557a78bac4671521bdec7db3a2829c75c0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 10 Sep 2013 17:57:14 +0000 Subject: [PATCH] Ignore user ID post data. git-svn-id: https://develop.svn.wordpress.org/trunk@25316 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index d78e7f2841..4c5ec76b0f 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -52,8 +52,7 @@ function _wp_translate_postdata( $update = false, $post_data = null ) { if ( isset($post_data['trackback_url']) ) $post_data['to_ping'] = $post_data['trackback_url']; - if ( !isset($post_data['user_ID']) ) - $post_data['user_ID'] = $GLOBALS['user_ID']; + $post_data['user_ID'] = $GLOBALS['user_ID']; if (!empty ( $post_data['post_author_override'] ) ) { $post_data['post_author'] = (int) $post_data['post_author_override'];