Version Description
- Released 2016-09-24
- Bug fix: Post featured image is being shown as user's profile picture when no avatar is selected.
Download this release
Release Info
| Developer | ronalfy |
| Plugin | |
| Version | 1.4.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.1 to 1.4.3
- metronet-profile-picture.php +6 -2
- readme.txt +9 -2
metronet-profile-picture.php
CHANGED
|
@@ -4,7 +4,7 @@ Plugin Name: User Profile Picture
|
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/metronet-profile-picture/
|
| 5 |
Description: Use the native WP uploader on your user profile page.
|
| 6 |
Author: Ronald Huereca
|
| 7 |
-
Version: 1.4.
|
| 8 |
Requires at least: 3.5
|
| 9 |
Author URI: https://www.mediaron.com
|
| 10 |
Contributors: ronalfy
|
|
@@ -217,7 +217,7 @@ class Metronet_Profile_Picture {
|
|
| 217 |
'echo' => false )
|
| 218 |
);
|
| 219 |
|
| 220 |
-
if (
|
| 221 |
return $custom_avatar;
|
| 222 |
} //end avatar_override
|
| 223 |
|
|
@@ -594,6 +594,10 @@ function mt_mpp_instantiate() {
|
|
| 594 |
function mt_profile_img( $user_id, $args = array() ) {
|
| 595 |
$profile_post_id = absint( get_user_option( 'metronet_post_id', $user_id ) );
|
| 596 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 597 |
$defaults = array(
|
| 598 |
'size' => 'thumbnail',
|
| 599 |
'attr' => '',
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/metronet-profile-picture/
|
| 5 |
Description: Use the native WP uploader on your user profile page.
|
| 6 |
Author: Ronald Huereca
|
| 7 |
+
Version: 1.4.3
|
| 8 |
Requires at least: 3.5
|
| 9 |
Author URI: https://www.mediaron.com
|
| 10 |
Contributors: ronalfy
|
| 217 |
'echo' => false )
|
| 218 |
);
|
| 219 |
|
| 220 |
+
if ( ! $custom_avatar ) return $avatar;
|
| 221 |
return $custom_avatar;
|
| 222 |
} //end avatar_override
|
| 223 |
|
| 594 |
function mt_profile_img( $user_id, $args = array() ) {
|
| 595 |
$profile_post_id = absint( get_user_option( 'metronet_post_id', $user_id ) );
|
| 596 |
|
| 597 |
+
if ( 0 === $profile_post_id || 'mt_pp' !== get_post_type( $profile_post_id ) ) {
|
| 598 |
+
return false;
|
| 599 |
+
}
|
| 600 |
+
|
| 601 |
$defaults = array(
|
| 602 |
'size' => 'thumbnail',
|
| 603 |
'attr' => '',
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: ronalfy
|
| 3 |
Tags: users, user, user profile
|
| 4 |
Requires at least: 3.5
|
| 5 |
-
Tested up to: 4.
|
| 6 |
-
Stable tag: 1.4.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
Donate link: https://mediaron.com/contribute/
|
|
@@ -114,6 +114,10 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
| 114 |
|
| 115 |
== Changelog ==
|
| 116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
= 1.4.1 =
|
| 118 |
* Released 2016-08-30 (Props @Monter)
|
| 119 |
* Fix select states in image modal
|
|
@@ -223,6 +227,9 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
| 223 |
|
| 224 |
== Upgrade Notice ==
|
| 225 |
|
|
|
|
|
|
|
|
|
|
| 226 |
= 1.4.1 =
|
| 227 |
Fix select states in image modal.
|
| 228 |
|
| 2 |
Contributors: ronalfy
|
| 3 |
Tags: users, user, user profile
|
| 4 |
Requires at least: 3.5
|
| 5 |
+
Tested up to: 4.9
|
| 6 |
+
Stable tag: 1.4.3
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
Donate link: https://mediaron.com/contribute/
|
| 114 |
|
| 115 |
== Changelog ==
|
| 116 |
|
| 117 |
+
= 1.4.3 =
|
| 118 |
+
* Released 2016-09-24
|
| 119 |
+
* Bug fix: Post featured image is being shown as user's profile picture when no avatar is selected.
|
| 120 |
+
|
| 121 |
= 1.4.1 =
|
| 122 |
* Released 2016-08-30 (Props @Monter)
|
| 123 |
* Fix select states in image modal
|
| 227 |
|
| 228 |
== Upgrade Notice ==
|
| 229 |
|
| 230 |
+
= 1.4.3 =
|
| 231 |
+
Bug fix: Post featured image is being shown as user's profile picture when no avatar is selected.
|
| 232 |
+
|
| 233 |
= 1.4.1 =
|
| 234 |
Fix select states in image modal.
|
| 235 |
|
