User Profile Picture - Version 1.5.1

Version Description

  • Released 2018-07-12
  • Fixed a condition where a featured image was shown for the author instead of a blank gravatar
Download this release

Release Info

Developer ronalfy
Plugin Icon 128x128 User Profile Picture
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5.0 to 1.5.1

Files changed (2) hide show
  1. metronet-profile-picture.php +4 -1
  2. readme.txt +8 -1
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.5.0
8
  Requires at least: 3.5
9
  Author URI: https://www.mediaron.com
10
  Contributors: ronalfy
@@ -256,6 +256,9 @@ class Metronet_Profile_Picture {
256
  $size = $args[ 'size' ];
257
 
258
  $profile_post_id = absint( get_user_option( 'metronet_post_id', $user_id ) );
 
 
 
259
  $post_thumbnail_id = get_post_thumbnail_id( $profile_post_id );
260
 
261
  // Attempt to get the image in the right size
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.5.1
8
  Requires at least: 3.5
9
  Author URI: https://www.mediaron.com
10
  Contributors: ronalfy
256
  $size = $args[ 'size' ];
257
 
258
  $profile_post_id = absint( get_user_option( 'metronet_post_id', $user_id ) );
259
+ if ( $profile_post_id == 0 ) {
260
+ return $args;
261
+ }
262
  $post_thumbnail_id = get_post_thumbnail_id( $profile_post_id );
263
 
264
  // Attempt to get the image in the right size
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ronalfy
3
  Tags: users, user, user profile
4
  Requires at least: 3.5
5
  Tested up to: 4.9
6
- Stable tag: 1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate link: https://mediaron.com/contribute/
@@ -88,6 +88,10 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = 1.5.0 =
92
  * Released 2018-07-11
93
  * Support for AMP avatar has been added
@@ -206,6 +210,9 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
206
 
207
  == Upgrade Notice ==
208
 
 
 
 
209
  = 1.5.0 =
210
  AMP now supported. Two REST API Endpoints added.
211
 
3
  Tags: users, user, user profile
4
  Requires at least: 3.5
5
  Tested up to: 4.9
6
+ Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate link: https://mediaron.com/contribute/
88
 
89
  == Changelog ==
90
 
91
+ = 1.5.1 =
92
+ * Released 2018-07-12
93
+ * Fixed a condition where a featured image was shown for the author instead of a blank gravatar
94
+
95
  = 1.5.0 =
96
  * Released 2018-07-11
97
  * Support for AMP avatar has been added
210
 
211
  == Upgrade Notice ==
212
 
213
+ = 1.5.1 =
214
+ Fixed a condition where a featured image was shown for the author instead of a blank gravatar
215
+
216
  = 1.5.0 =
217
  AMP now supported. Two REST API Endpoints added.
218