User Profile Picture - Version 1.0.22

Version Description

  • Released 02 September 2014
  • Added minor update to additional user meta for easier querying (props Solinx)
Download this release

Release Info

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

Code changes from version 1.0.21 to 1.0.22

Files changed (2) hide show
  1. metronet-profile-picture.php +2 -1
  2. readme.txt +9 -1
metronet-profile-picture.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Metronet 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: Metronet
7
- Version: 1.0.21
8
  Requires at least: 3.5
9
  Author URI: http://www.metronet.no
10
  Contributors: ronalfy, metronet
@@ -67,6 +67,7 @@ class Metronet_Profile_Picture {
67
 
68
  //Save user meta
69
  update_user_option( $user_id, 'metronet_post_id', $post_id );
 
70
  set_post_thumbnail( $post_id, $thumbnail_id );
71
 
72
  if ( has_post_thumbnail( $post_id ) ) {
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: Metronet
7
+ Version: 1.0.22
8
  Requires at least: 3.5
9
  Author URI: http://www.metronet.no
10
  Contributors: ronalfy, metronet
67
 
68
  //Save user meta
69
  update_user_option( $user_id, 'metronet_post_id', $post_id );
70
+ update_user_option( $user_id, 'metronet_image_id', $thumbnail_id ); //Added via this thread (Props Solinx) - https://wordpress.org/support/topic/storing-image-id-directly-as-user-meta-data
71
  set_post_thumbnail( $post_id, $thumbnail_id );
72
 
73
  if ( has_post_thumbnail( $post_id ) ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: metronet, ronalfy
3
  Tags: users, user, user profile
4
  Requires at least: 3.5
5
  Tested up to: 4.0
6
- Stable tag: 1.0.21
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -97,6 +97,11 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
97
  3. Post Thumbnail Editor compatibility.
98
 
99
  == Changelog ==
 
 
 
 
 
100
  = 1.0.21 =
101
  * Released 09 September 2013
102
  * Fixed avatar override on options discussion page.
@@ -142,6 +147,9 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
142
 
143
  == Upgrade Notice ==
144
 
 
 
 
145
  = 1.0.21 =
146
  Fixed avatar override on options discussion page.
147
 
3
  Tags: users, user, user profile
4
  Requires at least: 3.5
5
  Tested up to: 4.0
6
+ Stable tag: 1.0.22
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
97
  3. Post Thumbnail Editor compatibility.
98
 
99
  == Changelog ==
100
+
101
+ = 1.0.22 =
102
+ * Released 02 September 2014
103
+ * Added minor update to additional user meta for easier querying (props Solinx)
104
+
105
  = 1.0.21 =
106
  * Released 09 September 2013
107
  * Fixed avatar override on options discussion page.
147
 
148
  == Upgrade Notice ==
149
 
150
+ = 1.0.22 =
151
+ Added minor update to additional user meta for easier querying (props Solinx)
152
+
153
  = 1.0.21 =
154
  Fixed avatar override on options discussion page.
155