User Profile Picture - Version 1.0.16

Version Description

  • Fixed a bug where only the profile image interface was showing for only authors and not editors and administrators.
Download this release

Release Info

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

Code changes from version 1.0.15 to 1.0.16

Files changed (2) hide show
  1. metronet-profile-picture.php +3 -3
  2. readme.txt +5 -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.15
8
  Requires at least: 3.5
9
  Author URI: http://www.metronet.no
10
  Contributors: ronalfy, metronet
@@ -292,7 +292,7 @@ class Metronet_Profile_Picture {
292
  * Adds an upload form to the user profile page and outputs profile image if there is one
293
  */
294
  public function insert_upload_form() {
295
- if ( !current_user_can( 'author' ) ) return; //Users must be author or greater
296
 
297
  $user_id = $this->get_user_id();
298
  $post_id = $this->get_post_id( $user_id );
@@ -343,7 +343,7 @@ class Metronet_Profile_Picture {
343
  //Post Thumbnail Editor compatibility - http://wordpress.org/extend/plugins/post-thumbnail-editor/
344
  $script_deps[] = 'thickbox';
345
  }
346
- wp_enqueue_script( 'mt-pp', $this->get_plugin_url( '/js/mpp.js' ), $script_deps, '1.0.15', true );
347
  wp_localize_script( 'mt-pp', 'metronet_profile_image',
348
  array(
349
  'set_profile_text' => __( 'Set profile image', '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.16
8
  Requires at least: 3.5
9
  Author URI: http://www.metronet.no
10
  Contributors: ronalfy, metronet
292
  * Adds an upload form to the user profile page and outputs profile image if there is one
293
  */
294
  public function insert_upload_form() {
295
+ if ( !current_user_can( 'upload_files' ) ) return; //Users must be author or greater
296
 
297
  $user_id = $this->get_user_id();
298
  $post_id = $this->get_post_id( $user_id );
343
  //Post Thumbnail Editor compatibility - http://wordpress.org/extend/plugins/post-thumbnail-editor/
344
  $script_deps[] = 'thickbox';
345
  }
346
+ wp_enqueue_script( 'mt-pp', $this->get_plugin_url( '/js/mpp.js' ), $script_deps, '1.0.16', true );
347
  wp_localize_script( 'mt-pp', 'metronet_profile_image',
348
  array(
349
  'set_profile_text' => __( 'Set profile image', 'metronet_profile_picture' ),
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: 3.5
6
- Stable tag: 1.0.15
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -89,6 +89,8 @@ We highly recommend the <a href='http://wordpress.org/extend/plugins/post-thumbn
89
  3. Post Thumbnail Editor compatibility.
90
 
91
  == Changelog ==
 
 
92
 
93
  = 1.0.15 =
94
  * Built-in support for <a href="http://wordpress.org/extend/plugins/post-thumbnail-editor/">Post Thumbnail Editor</a>
@@ -117,6 +119,8 @@ We highly recommend the <a href='http://wordpress.org/extend/plugins/post-thumbn
117
  * Initial release.
118
 
119
  == Upgrade Notice ==
 
 
120
 
121
  = 1.0.15 =
122
  Built-in support for Post Thumbnail Editor. Better integration with the new WP 3.5 media uploader. Various bug fixes.
3
  Tags: users, user, user profile
4
  Requires at least: 3.5
5
  Tested up to: 3.5
6
+ Stable tag: 1.0.16
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
89
  3. Post Thumbnail Editor compatibility.
90
 
91
  == Changelog ==
92
+ = 1.0.16 =
93
+ * Fixed a bug where only the profile image interface was showing for only authors and not editors and administrators.
94
 
95
  = 1.0.15 =
96
  * Built-in support for <a href="http://wordpress.org/extend/plugins/post-thumbnail-editor/">Post Thumbnail Editor</a>
119
  * Initial release.
120
 
121
  == Upgrade Notice ==
122
+ = 1.0.16 =
123
+ Fixed a bug where only the profile image interface was showing for only authors and not editors and administrators.
124
 
125
  = 1.0.15 =
126
  Built-in support for Post Thumbnail Editor. Better integration with the new WP 3.5 media uploader. Various bug fixes.