| @@ -387,18 +387,12 @@ | ||
| 387 | 387 | if( !empty( $badge ) && $user_id && $badge = str_replace("%%profile_url%%", uwp_build_profile_tab_url($user_id),$badge) ){ |
| 388 | 388 | // will be replace in condition check |
| 389 | 389 | } |
| 390 | 390 | |
| 391 | - // link url, replace vars | |
| 392 | - if ( ! empty( $args['link'] ) && $args['link'] = str_replace( "%%input%%", $match_value, $args['link'] ) ) { | |
| 391 | + //link url, replace vars | |
| 392 | + if( !empty( $args['link'] ) && $args['link'] = str_replace("%%input%%", $match_value,$args['link']) ){ | |
| 393 | 393 | // will be replace in condition check |
| 394 | - if ( ! empty( $field->field_type ) && $field->field_type == 'url' ) { | |
| 395 | - $args['link'] = esc_url( $args['link'] ); | |
| 396 | - } else { | |
| 397 | - $args['link'] = esc_attr( $args['link'] ); | |
| 398 | - } | |
| 399 | 394 | } |
| 400 | - | |
| 401 | 395 | if( !empty( $args['link'] ) && $user_id && $args['link'] = str_replace("%%profile_url%%", uwp_build_profile_tab_url($user_id),$args['link']) ){ |
| 402 | 396 | // will be replace in condition check |
| 403 | 397 | } |
| 404 | 398 | |