- fix social url with the esc_url_raw()

This commit is contained in:
ashubawork
2023-11-21 14:28:19 +02:00
parent 9bbad3ce21
commit 16d376d91a
+1 -1
View File
@@ -783,7 +783,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( urldecode( $form[ $k ] ) );
$v = esc_url_raw( $form[ $k ] );
// Make a proper social link
if ( ! empty( $v ) ) {