- fixed social URLs where user can put his social username (e.g. Instagram, Facebook);

- WPCS for the built-in fields;
- added blueprint.json;
This commit is contained in:
Mykyta Synelnikov
2024-04-10 15:40:43 +03:00
parent b9203e12c3
commit cdd888a4d3
3 changed files with 314 additions and 307 deletions
+2 -2
View File
@@ -786,7 +786,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 = esc_url_raw( $form[ $k ] );
$v = $form[ $k ];
// Make a proper social link
if ( ! empty( $v ) ) {
@@ -833,7 +833,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
}
}
$form[ $k ] = $v;
$form[ $k ] = esc_url_raw( $v );
} else {
$form[ $k ] = esc_url_raw( $form[ $k ] );
}