Plugin Directory

Changeset 447210


Ignore:
Timestamp:
10/04/2011 07:31:23 PM (14 years ago)
Author:
oltdev
Message:

Update to version 1.4.4

Location:
user-avatar/trunk
Files:
2 edited

Legend:

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

    r447195 r447210  
    3535
    3636== Changelog ==
     37
     38= 1.4.4 =
     39* Minor: Removed Notice errors
     40
    3741= 1.4.3 =
    3842* Bug fix: Sites that were installed in a sub directory had the problem where user avatars disappeared. Thanks to Woostotmar for pointing that out!
  • user-avatar/trunk/user-avatar.php

    r447195 r447210  
    44Plugin URI: http://wordpress.org/extend/plugins/user-avatar/
    55Description: Allows users to associate photos with their accounts by accessing their "Your Profile" page that default as Gravatar or WordPress Default image (from Discussion Page).
    6 Version: 1.4.3
     6Version: 1.4.4
    77Author: Enej Bajgoric / Gagan Sandhu / CTLT DEV
    88
     
    536536    $defaults = array(
    537537        'item_id'       => false,
    538         'object'        => "user",  // user/group/blog/custom type (if you use filters)
    539         'type'          => $def_type,   // thumb or full
     538        'object'        => "user",      // user/group/blog/custom type (if you use filters)
     539        'type'          => 'full',      // thumb or full
    540540        'avatar_dir'    => false,       // Specify a custom avatar directory for your object
    541541        'width'         => false,       // Custom width (int)
    542542        'height'        => false,       // Custom height (int)
    543         'class'         => $def_class,  // Custom <img> class (string)
     543        'class'         => '',          // Custom <img> class (string)
    544544        'css_id'        => false,       // Custom <img> ID (string)
    545         'alt'           => $def_alt,    // Custom <img> alt (string)
     545        'alt'           => '',  // Custom <img> alt (string)
    546546        'email'         => false,       // Pass the user email (for gravatar) to prevent querying the DB for it
    547547        'no_grav'       => false,       // If there is no avatar found, return false instead of a grav?
     
    661661        // Remove the User-Avatar button if there is no uploaded image
    662662       
    663         if($_GET['user_id']):
     663        if(isset($_GET['user_id'])):
    664664            $remove_url = admin_url('user-edit.php')."?user_id=".$_GET['user_id']."&delete_avatar=true&_nononce=". wp_create_nonce('user_avatar')."&u=".$profile->ID;
    665665        else:
Note: See TracChangeset for help on using the changeset viewer.