From 9d32d271c4be80875cb7c35a1f99758831eac84c Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Thu, 14 Sep 2017 15:29:10 -0700 Subject: [PATCH] Unset a few more things that `bulk_edit_posts()` shouldn't get --- includes/class-edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-edit.php b/includes/class-edit.php index 6774e8c..33960fb 100644 --- a/includes/class-edit.php +++ b/includes/class-edit.php @@ -63,6 +63,7 @@ class Edit { // `bulk_edit_posts()` takes an array, normally `$_REQUEST`, so we convert back. $request_array = get_object_vars( $vars ); unset( $request_array['action'] ); + unset( $request_array['user_id'] ); // Modify some keys to match `bulk_edit_post()`'s expectations. $request_array['post'] = $request_array['posts']; @@ -70,8 +71,8 @@ class Edit { if ( ! is_null( $request_array['post_sticky'] ) ) { $request_array['sticky'] = $request_array['post_sticky']; - unset( $request_array['post_sticky'] ); } + unset( $request_array['post_sticky'] ); // Post status uses a special key. if ( is_null( $request_array['post_status'] ) || 'all' === $request_array['post_status'] ) { -- GitLab