From bb0a49e08a3bb01a20a9e5bc4a894c0aca70b3a9 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Wed, 29 Jan 2025 16:44:29 +0200 Subject: [PATCH] * update dropdown items texts on cover photo change/remove; * WPCS; --- includes/core/um-actions-profile.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index 1512fd88..743d5de2 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -855,7 +855,7 @@ function um_profile_header_cover_area( $args ) { } ?>
+ data-user_id="" data-ratio=""> ' . esc_html( $text ) . '', @@ -898,7 +898,7 @@ function um_profile_header_cover_area( $args ) { $items = apply_filters( 'um_cover_area_content_dropdown_items', $items, um_profile_id() ); UM()->profile()->new_ui( 'bc', 'div.um-cover', 'click', $items ); - } elseif ( ! isset( UM()->user()->cannot_edit ) && ! $user_cover ) { + } elseif ( ! $user_cover && ! isset( UM()->user()->cannot_edit ) ) { $items = array( '' . esc_html__( 'Upload a cover photo', 'ultimate-member' ) . '', '' . esc_html__( 'Cancel', 'ultimate-member' ) . '',