From a12bea07f8be1a7885d345a8e828a92969b58a5f Mon Sep 17 00:00:00 2001 From: yura_nalivaiko Date: Tue, 1 May 2018 14:33:47 +0300 Subject: [PATCH] fix --- includes/um-short-functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/um-short-functions.php b/includes/um-short-functions.php index 6838dff5..7a787b39 100644 --- a/includes/um-short-functions.php +++ b/includes/um-short-functions.php @@ -2149,12 +2149,12 @@ function um_user( $data, $attrs = null ) { case 'profile_photo': $data = um_get_user_avatar_data( um_user( 'ID' ), $attrs ); - return '' . esc_attr($data['alt']) . ''; + alt="' . esc_attr($data['alt']) . '" + onerror="this.src=\''.esc_attr($data['default']).'\';" />'; //don't move attribute before src break;