mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- merged #1029;
This commit is contained in:
@@ -671,10 +671,10 @@ function um_get_snippet( $str, $wordCount = 10 ) {
|
||||
|
||||
/**
|
||||
* Format submitted data for Info preview & Email template
|
||||
* @param boolean $style
|
||||
* @param boolean $style
|
||||
* @return string
|
||||
*
|
||||
* @since 2.1.4
|
||||
* @since 2.1.4
|
||||
*/
|
||||
function um_user_submitted_registration_formatted( $style = false ) {
|
||||
$output = null;
|
||||
@@ -839,7 +839,7 @@ function um_user_submitted_registration_formatted( $style = false ) {
|
||||
* @param boolean $style
|
||||
* @return string
|
||||
*
|
||||
* @since 2.1.4
|
||||
* @since 2.1.4
|
||||
*/
|
||||
function um_user_submited_display( $k, $title, $data = array(), $style = true ) {
|
||||
$output = '';
|
||||
@@ -1142,8 +1142,8 @@ function um_is_file_owner( $url, $user_id = null, $image_path = false ) {
|
||||
|
||||
/**
|
||||
* Check if file is temporary
|
||||
* @param string $filename
|
||||
* @return bool
|
||||
* @param string $filename
|
||||
* @return bool
|
||||
*/
|
||||
function um_is_temp_file( $filename ) {
|
||||
$user_basedir = UM()->uploader()->get_upload_user_base_dir( 'temp' );
|
||||
@@ -2503,7 +2503,7 @@ function um_user( $data, $attrs = null ) {
|
||||
case 'profile_photo':
|
||||
$data = um_get_user_avatar_data( um_user( 'ID' ), $attrs );
|
||||
|
||||
return sprintf( '<img src="%s" class="%s" width="%s" height="%s" alt="%s" data-default="%s" onerror="%s" />',
|
||||
return sprintf( '<img src="%s" class="%s" width="%s" height="%s" alt="%s" data-default="%s" onerror="%s" loading="lazy" />',
|
||||
esc_attr( $data['url'] ),
|
||||
esc_attr( $data['class'] ),
|
||||
esc_attr( $data['size'] ),
|
||||
@@ -2553,7 +2553,7 @@ function um_user( $data, $attrs = null ) {
|
||||
|
||||
$alt = um_profile( 'nickname' );
|
||||
|
||||
$cover_html = $cover_uri ? '<img src="' . esc_attr( $cover_uri ) . '" alt="' . esc_attr( $alt ) . '" />' : '';
|
||||
$cover_html = $cover_uri ? '<img src="' . esc_attr( $cover_uri ) . '" alt="' . esc_attr( $alt ) . '" loading="lazy" />' : '';
|
||||
|
||||
$cover_html = apply_filters( 'um_user_cover_photo_html__filter', $cover_html, $cover_uri, $alt, $is_default, $attrs );
|
||||
return $cover_html;
|
||||
|
||||
Reference in New Issue
Block a user