mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fix file field allowed_types
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user