From 5fc2cd54a4800d621e02aa4652e7b98e54878b5f Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Fri, 24 Jan 2025 18:19:14 +0200 Subject: [PATCH] * Reviewed #1634 --- includes/core/um-actions-profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index 4735798e..dea06397 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -693,7 +693,7 @@ function um_profile_dynamic_meta_desc() { // The minimum size is 200 x 200 px, however, we recommend keeping it to 600 x 315 px. // If your image is smaller than 600 x 315 pixels, it will appear as a small image in the link preview. - $image_size_def = 'cover_photo' === $image_type ? 600 : 200; + $default_image_size = 'cover_photo' === $image_type ? 600 : 200; /** * Filters the profile SEO image size. Default 190. Available 'original'. @@ -712,7 +712,7 @@ function um_profile_dynamic_meta_desc() { * } * add_filter( 'um_profile_dynamic_meta_image_size', 'my_um_profile_dynamic_meta_image_size', 10, 2 ); */ - $image_size = apply_filters( 'um_profile_dynamic_meta_image_size', $image_size_def, $user_id ); + $image_size = apply_filters( 'um_profile_dynamic_meta_image_size', $default_image_size, $user_id ); if ( 'cover_photo' === $image_type ) { if ( is_numeric( $image_size ) ) {