mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 22:54:03 +09:00
- fixed #1085;
This commit is contained in:
@@ -702,7 +702,7 @@ function um_submit_form_errors_hook_( $args ) {
|
||||
break;
|
||||
|
||||
case 'youtube_url':
|
||||
if ( ! UM()->validation()->is_url( $args[ $key ], 'youtube.com' ) ) {
|
||||
if ( ! UM()->validation()->is_url( $args[ $key ], 'youtube.com' ) && ! UM()->validation()->is_url( $args[ $key ], 'youtu.be' ) ) {
|
||||
UM()->form()->add_error( $key, sprintf( __( 'Please enter a valid %s username or profile URL', 'ultimate-member' ), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user