Custom User Profile Photo - Version 0.2.6

Version Description

  • Fixed a bug where the save function required a different capability than the upload function (courtesy of douglas_johnson).
Download this release

Release Info

Developer 3five
Plugin Icon wp plugin Custom User Profile Photo
Version 0.2.6
Comparing to
See all releases

Code changes from version 0.2.5 to 0.2.6

Files changed (2) hide show
  1. 3five_cupp.php +2 -2
  2. readme.txt +8 -2
3five_cupp.php CHANGED
@@ -7,7 +7,7 @@ Author: 3five
7
  Author URI: http://3five.com
8
  Text Domain: custom-user-profile-photo
9
  Domain Path: /languages/
10
- Version: 0.2.5
11
  */
12
 
13
  /**
@@ -141,7 +141,7 @@ add_action( 'edit_user_profile_update', 'cupp_save_img_meta' );
141
 
142
  function cupp_save_img_meta( $user_id ) {
143
 
144
- if ( !current_user_can( 'edit_user', $user_id ) )
145
  return false;
146
 
147
  // If the current user can edit Users, allow this.
7
  Author URI: http://3five.com
8
  Text Domain: custom-user-profile-photo
9
  Domain Path: /languages/
10
+ Version: 0.2.6
11
  */
12
 
13
  /**
141
 
142
  function cupp_save_img_meta( $user_id ) {
143
 
144
+ if ( !current_user_can( 'upload_files', $user_id ) )
145
  return false;
146
 
147
  // If the current user can edit Users, allow this.
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: 3five, VincentListrani
3
  Donate link:
4
  Tags: custom profile photo, user profile, profile photo, user profile photo
5
  Requires at least: 3.6.1
6
- Tested up to: 4.1
7
- Stable tag: 0.2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -73,6 +73,9 @@ Currently, only a user with admin privileges can manage this option.
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 0.2.5 =
77
  * Tested with WordPress v4.1
78
  * Fixed a bug where the external URL option would not return the URL with get_cupp_meta().
@@ -91,6 +94,9 @@ Currently, only a user with admin privileges can manage this option.
91
 
92
  == Upgrade Notice ==
93
 
 
 
 
94
  = 0.2.5 =
95
  Bug Fixes and minor improvements.
96
 
3
  Donate link:
4
  Tags: custom profile photo, user profile, profile photo, user profile photo
5
  Requires at least: 3.6.1
6
+ Tested up to: 4.2
7
+ Stable tag: 0.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
73
 
74
  == Changelog ==
75
 
76
+ = 0.2.6 =
77
+ * Fixed a bug where the save function required a different capability than the upload function (courtesy of douglas_johnson).
78
+
79
  = 0.2.5 =
80
  * Tested with WordPress v4.1
81
  * Fixed a bug where the external URL option would not return the URL with get_cupp_meta().
94
 
95
  == Upgrade Notice ==
96
 
97
+ = 0.2.6 =
98
+ Bug Fixes and minor improvements.
99
+
100
  = 0.2.5 =
101
  Bug Fixes and minor improvements.
102