Changeset 571413
- Timestamp:
- 07/12/2012 07:00:18 PM (14 years ago)
- Location:
- user-avatar/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
user-avatar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
user-avatar/trunk/readme.txt
r537421 r571413 3 3 Tags: people lists, people, list, form, user profile, user avatar, thumbnail, upload photo, user, users, profile, biography, profile biography, user profile, description, profile description, rich text, wysiwyg, tinyMCE, photos, images, members, directory, profiles, jQuery, sortable, tabbable, thickbox, overlay, media button, Your Profile 4 4 Requires at least: 3.0 5 Tested up to: 3. 15 Tested up to: 3.4.1 6 6 Stable Tag: trunk 7 7 … … 36 36 37 37 == Changelog == 38 = 1.4.9 = 39 * made it work with 3.4.1 again Thanks juanmatias for the fix 40 * allowed the user with 'edit_user' capability to update other peoples profiles thanks to greekdish 41 42 38 43 = 1.4.8 = 39 44 * updated to the latest version of the timthumb 2.8.10 -
user-avatar/trunk/user-avatar.php
r537421 r571413 224 224 <div id="user-avatar-step1"> 225 225 <form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo admin_url('admin-ajax.php'); ?>?action=user_avatar_add_photo&step=2&uid=<?php echo $uid; ?>" > 226 <label for="upload"><?php _e('Choose an image from your computer:','user-avatar'); ?></label><br /><input type="file" id="upload" name="uploadedfile" />227 <input type="hidden" name="action" value="save" /> 228 <?php wp_nonce_field('user-avatar') ?>226 <label for="upload"><?php _e('Choose an image from your computer:','user-avatar'); ?></label><br /><input type="file" id="upload" name="uploadedfile" /> 227 228 <?php wp_nonce_field('user-avatar') ?> 229 229 <p class="submit"><input type="submit" value="<?php esc_attr_e('Upload'); ?>" /></p> 230 230 </form> … … 650 650 651 651 // Check if it is current user or super admin role 652 if( ($profile->ID == $current_user->ID || is_super_admin($current_user->ID)))652 if( $profile->ID == $current_user->ID || current_user_can('edit_user', $current_user->ID) || is_super_admin($current_user->ID) ) 653 653 { 654 654 $avatar_folder_dir = USER_AVATAR_UPLOAD_PATH."{$profile->ID}/";
Note: See TracChangeset
for help on using the changeset viewer.