- fix file field allowed_types

This commit is contained in:
ashubawork
2023-07-01 09:57:18 +03:00
parent dad4c8017c
commit 13b8350e87
+2 -2
View File
@@ -2990,9 +2990,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$output .= '</div>';
/* modal hidden */
if ( empty( $disabled ) ) {
if ( ! isset( $allowed_types ) ) {
if ( ! isset( $data['allowed_types'] ) ) {
$allowed_types = 'pdf,txt';
} elseif ( is_array( $allowed_types ) ) {
} elseif ( is_array( $data['allowed_types'] ) ) {
$allowed_types = implode( ',', $data['allowed_types'] );
} else {
$allowed_types = $data['allowed_types'];