Skip to content
Snippets Groups Projects
Commit 9d32d271 authored by Erick Hitter's avatar Erick Hitter
Browse files

Unset a few more things that `bulk_edit_posts()` shouldn't get

parent 4d019127
No related branches found
No related tags found
No related merge requests found
......@@ -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'] ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment