From 6fc7ed76869c11366dd2d804889f31260cb7a563 Mon Sep 17 00:00:00 2001 From: Nikita Sinelnikov Date: Tue, 10 Aug 2021 16:20:14 +0300 Subject: [PATCH] - fixed sanitizing key for the drag&drop action; --- includes/admin/core/class-admin-dragdrop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/core/class-admin-dragdrop.php b/includes/admin/core/class-admin-dragdrop.php index 60dab8fd..02f68e9e 100644 --- a/includes/admin/core/class-admin-dragdrop.php +++ b/includes/admin/core/class-admin-dragdrop.php @@ -60,7 +60,7 @@ if ( ! class_exists( 'um\admin\core\Admin_DragDrop' ) ) { foreach ( $_POST as $key => $value ) { - $key = sanitize_key( $key ); + $key = sanitize_text_field( $key ); // adding rows if ( 0 === strpos( $key, '_um_row_' ) ) {