Version Description
- Fixed broken avatar in some edge cases.
Download this release
Release Info
Developer | Collizo4sky |
Plugin | WP User Avatar |
Version | 2.2.15 |
Comparing to | |
See all releases |
Code changes from version 2.2.14 to 2.2.15
- includes/class-wp-user-avatar-functions.php +4 -4
- readme.txt +4 -1
- wp-user-avatar.php +1 -1
includes/class-wp-user-avatar-functions.php
CHANGED
@@ -660,11 +660,11 @@ class WP_User_Avatar_Functions {
|
|
660 |
$wpua_image = $wpua_functions->wpua_get_attachment_image_src($wpua_meta, $get_size);
|
661 |
// Add dimensions to img only if numeric size was specified
|
662 |
$dimensions = is_numeric($size) ? ' width="'.$wpua_image[1].'" height="'.$wpua_image[2].'"' : "";
|
|
|
|
|
|
|
663 |
// Construct the img tag
|
664 |
-
$avatar =
|
665 |
-
'<img src="'.$wpua_image[0].'"'.$dimensions.' alt="'.$alt.'" class="avatar avatar-'.$size.' wp-user-avatar wp-user-avatar-'.$size.$alignclass.' photo%s" />',
|
666 |
-
!empty($class) ? ' ' . $class : ''
|
667 |
-
);
|
668 |
} else {
|
669 |
// Check for custom image sizes
|
670 |
if(in_array($size, $all_sizes)) {
|
660 |
$wpua_image = $wpua_functions->wpua_get_attachment_image_src($wpua_meta, $get_size);
|
661 |
// Add dimensions to img only if numeric size was specified
|
662 |
$dimensions = is_numeric($size) ? ' width="'.$wpua_image[1].'" height="'.$wpua_image[2].'"' : "";
|
663 |
+
|
664 |
+
$class_string = !empty($class) ? ' ' . $class : '';
|
665 |
+
|
666 |
// Construct the img tag
|
667 |
+
$avatar = '<img src="'.$wpua_image[0].'"'.$dimensions.' alt="'.$alt.'" class="avatar avatar-'.$size.' wp-user-avatar wp-user-avatar-'.$size.$alignclass.' photo'.$class_string.'" />';
|
|
|
|
|
|
|
668 |
} else {
|
669 |
// Check for custom image sizes
|
670 |
if(in_array($size, $all_sizes)) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: properfraction, collizo4sky
|
|
4 |
Tags: user profile, avatar, gravatar, author image, author photo, author avatar, bbPress, profile avatar, profile image, user avatar, user image, user photo, widget
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.7
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -370,6 +370,9 @@ This would output:
|
|
370 |
|
371 |
== Changelog ==
|
372 |
|
|
|
|
|
|
|
373 |
= 2.2.14 =
|
374 |
* Added missing space before classes.
|
375 |
|
4 |
Tags: user profile, avatar, gravatar, author image, author photo, author avatar, bbPress, profile avatar, profile image, user avatar, user image, user photo, widget
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 2.2.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
370 |
|
371 |
== Changelog ==
|
372 |
|
373 |
+
= 2.2.15 =
|
374 |
+
* Fixed broken avatar in some edge cases.
|
375 |
+
|
376 |
= 2.2.14 =
|
377 |
* Added missing space before classes.
|
378 |
|
wp-user-avatar.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpress.org/plugins/wp-user-avatar/
|
|
5 |
Description: Use any image from your WordPress Media Library as a custom user avatar. Add your own Default Avatar.
|
6 |
Author: ProfilePress
|
7 |
Author URI: https://profilepress.net/
|
8 |
-
Version: 2.2.
|
9 |
Text Domain: wp-user-avatar
|
10 |
Domain Path: /lang/
|
11 |
*/
|
5 |
Description: Use any image from your WordPress Media Library as a custom user avatar. Add your own Default Avatar.
|
6 |
Author: ProfilePress
|
7 |
Author URI: https://profilepress.net/
|
8 |
+
Version: 2.2.15
|
9 |
Text Domain: wp-user-avatar
|
10 |
Domain Path: /lang/
|
11 |
*/
|