Plugin Directory

Changeset 571413


Ignore:
Timestamp:
07/12/2012 07:00:18 PM (14 years ago)
Author:
oltdev
Message:

Updated to 1.4.9 works again with version 3.4.1

Location:
user-avatar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • user-avatar/trunk/readme.txt

    r537421 r571413  
    33Tags: 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
    44Requires at least: 3.0
    5 Tested up to: 3.1
     5Tested up to: 3.4.1
    66Stable Tag: trunk
    77
     
    3636
    3737== 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
    3843= 1.4.8 =
    3944* updated to the latest version of the timthumb 2.8.10
  • user-avatar/trunk/user-avatar.php

    r537421 r571413  
    224224    <div id="user-avatar-step1">
    225225    <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') ?>
    229229        <p class="submit"><input type="submit" value="<?php esc_attr_e('Upload'); ?>" /></p>
    230230    </form>
     
    650650   
    651651    // 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) )
    653653    {
    654654        $avatar_folder_dir = USER_AVATAR_UPLOAD_PATH."{$profile->ID}/";
Note: See TracChangeset for help on using the changeset viewer.