Merge pull request #1351 from ultimatemember/fix/social_url_characters

Social URL characters
This commit is contained in:
Mykyta Synelnikov
2023-11-21 14:52:21 +02:00
committed by GitHub
+1 -1
View File
@@ -784,7 +784,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
$f = UM()->builtin()->get_a_field( $k );
if ( is_array( $f ) && array_key_exists( 'match', $f ) && array_key_exists( 'advanced', $f ) && 'social' === $f['advanced'] ) {
$v = sanitize_text_field( $form[ $k ] );
$v = esc_url_raw( $form[ $k ] );
// Make a proper social link
if ( ! empty( $v ) ) {