mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed empty max_size data for the uploaders;
This commit is contained in:
@@ -1757,7 +1757,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
if ( ! isset( $array['max_files_error'] ) ) {
|
||||
$array['max_files_error'] = __( 'You can only upload one image', 'ultimate-member' );
|
||||
}
|
||||
if ( ! isset( $array['max_size'] ) ) {
|
||||
if ( empty( $array['max_size'] ) ) {
|
||||
$array['max_size'] = 999999999;
|
||||
}
|
||||
if ( ! isset( $array['upload_help_text'] ) ) {
|
||||
@@ -1798,7 +1798,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
if ( ! isset( $array['max_files_error'] ) ) {
|
||||
$array['max_files_error'] = __( 'You can only upload one file', 'ultimate-member' );
|
||||
}
|
||||
if ( ! isset( $array['max_size'] ) ) {
|
||||
if ( empty( $array['max_size'] ) ) {
|
||||
$array['max_size'] = 999999999;
|
||||
}
|
||||
if ( ! isset( $array['upload_help_text'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user