Plugin Directory

Changeset 447195


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

Update to version 1.4.3

Location:
user-avatar/trunk
Files:
2 edited

Legend:

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

    r447156 r447195  
    3535
    3636== Changelog ==
     37= 1.4.3 =
     38* Bug fix: Sites that were installed in a sub directory had the problem where user avatars disappeared. Thanks to Woostotmar for pointing that out!
     39
    3740= 1.4.2 =
    3841* Bug fix: Was displaying a PHP warning if folders were not present! Many Thanks to Gabriel Serafini!
  • user-avatar/trunk/user-avatar.php

    r447156 r447195  
    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.2
     6Version: 1.4.3
    77Author: Enej Bajgoric / Gagan Sandhu / CTLT DEV
    88
     
    593593    if( $avatar_img = user_avatar_avatar_exists( $item_id ) ):
    594594   
    595         $avatar_src = "/wp-content/uploads/avatars/".$item_id."/".$avatar_img;
     595        $avatar_src = get_site_url()."/wp-content/uploads/avatars/".$item_id."/".$avatar_img;
    596596       
    597597        $avatar_folder_dir = USER_AVATAR_UPLOAD_PATH."{$item_id}/";
     
    691691
    692692/*-- HELPER FUNCTIONS --*/
     693/**
     694 * user_avatar_avatar_exists function.
     695 *
     696 * @access public
     697 * @param mixed $id
     698 * @return void
     699 */
    693700function user_avatar_avatar_exists($id){
    694701   
     
    726733    return $return;
    727734}
    728 
     735/**
     736 * user_avatar_get_avatar function.
     737 *
     738 * @access public
     739 * @param mixed $id
     740 * @param mixed $width
     741 * @return void
     742 */
    729743function user_avatar_get_avatar($id,$width) {
    730744   
Note: See TracChangeset for help on using the changeset viewer.