- sanitizing variables in wp-admin classes;

This commit is contained in:
nikitasinelnikov
2020-02-28 15:51:45 +02:00
parent e0e6030b46
commit 0aab9853d9
14 changed files with 1045 additions and 992 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ if ( ! class_exists( 'um\admin\Admin_Functions' ) ) {
$cpt = UM()->cpt_list();
if ( isset( $_REQUEST['post_type'] ) ) {
$post_type = $_REQUEST['post_type'];
$post_type = sanitize_key( $_REQUEST['post_type'] );
if ( in_array( $post_type, $cpt ) ) {
return true;
}