User Profile Picture - Version 1.0.21

Version Description

  • Released 09 September 2013
  • Fixed avatar override on options discussion page.
Download this release

Release Info

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

Code changes from version 1.0.20 to 1.0.21

Files changed (2) hide show
  1. metronet-profile-picture.php +4 -1
  2. readme.txt +10 -3
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.20
8
  Requires at least: 3.5
9
  Author URI: http://www.metronet.no
10
  Contributors: ronalfy, metronet
@@ -112,6 +112,9 @@ class Metronet_Profile_Picture {
112
  * @param string $alt Alternative text
113
  **/
114
  public function avatar_override( $avatar, $id_or_email, $size, $default, $alt ) {
 
 
 
115
  //Get user data
116
  if ( is_numeric( $id_or_email ) ) {
117
  $user = get_user_by( 'id', ( int )$id_or_email );
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
112
  * @param string $alt Alternative text
113
  **/
114
  public function avatar_override( $avatar, $id_or_email, $size, $default, $alt ) {
115
+ global $pagenow;
116
+ if ( 'options-discussion.php' == $pagenow ) return $avatar; //Stop overriding gravatars on options-discussion page
117
+
118
  //Get user data
119
  if ( is_numeric( $id_or_email ) ) {
120
  $user = get_user_by( 'id', ( int )$id_or_email );
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: metronet, ronalfy
3
  Tags: users, user, user profile
4
  Requires at least: 3.5
5
- Tested up to: 3.6
6
- Stable tag: 1.0.20
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -97,8 +97,12 @@ 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.20 =
101
- * Released 13 May 2012.
102
  * Added a filter for turning on "Override Avatar" by default.
103
 
104
  = 1.0.19 =
@@ -138,6 +142,9 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
138
 
139
  == Upgrade Notice ==
140
 
 
 
 
141
  = 1.0.20 =
142
  Added a filter for turning on "Override Avatar" by default.
143
 
2
  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
  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.
103
+
104
  = 1.0.20 =
105
+ * Released 13 May 2013.
106
  * Added a filter for turning on "Override Avatar" by default.
107
 
108
  = 1.0.19 =
142
 
143
  == Upgrade Notice ==
144
 
145
+ = 1.0.21 =
146
+ Fixed avatar override on options discussion page.
147
+
148
  = 1.0.20 =
149
  Added a filter for turning on "Override Avatar" by default.
150