diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php index 8ffb9ea1..b2c97670 100644 --- a/includes/admin/core/class-admin-settings.php +++ b/includes/admin/core/class-admin-settings.php @@ -653,6 +653,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { 'type' => 'number', 'label' => __( 'Activation link lifetime', 'ultimate-member' ), 'tooltip' => __( 'How long does an activation link live? Leave empty for endless links.', 'ultimate-member' ), + 'size' => 'small', ), ) ), diff --git a/includes/core/um-actions-login.php b/includes/core/um-actions-login.php index 6de065fb..b9d12f35 100644 --- a/includes/core/um-actions-login.php +++ b/includes/core/um-actions-login.php @@ -75,7 +75,7 @@ function um_submit_form_errors_hook_login( $args ) { // if there is an error notify wp if ( UM()->form()->has_error( $field ) || UM()->form()->has_error( $user_password ) || UM()->form()->count_errors() > 0 ) { - do_action( 'wp_login_failed', $user_name ); + do_action( 'wp_login_failed', $user_name, UM()->form()->errors ); } } add_action( 'um_submit_form_errors_hook_login', 'um_submit_form_errors_hook_login', 10 ); diff --git a/readme.txt b/readme.txt index 87480364..9b387705 100644 --- a/readme.txt +++ b/readme.txt @@ -177,6 +177,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat - Fixed: Getting active Profile tab when some of them are hidden - Fixed: Restricted content message is showing twice and removing header, avoid the conflicts with themes that use 'the_content' filter in header or footer (#799) - Fixed: "Is required" validation for the multiselect field-type when it's empty on submit + - Fixed: Using 'wp_login_failed' hook, added 2nd parameter required since WordPress 5.4 version (#810) = 2.1.16: March 10, 2021 =