WordPress.org

Plugin Directory

Changeset 118924


Ignore:
Timestamp:
05/19/09 13:41:18 (5 years ago)
Author:
bforchhammer
Message:

Added "BuddyPress Member Page" to the list of pages which a user can be linked to.

Location:
author-avatars/trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • author-avatars/trunk/lib/AuthorAvatarsForm.class.php

    r114302 r118924  
    352352            'website' => __('Website'), 
    353353        ); 
     354        if (function_exists('bp_core_get_userurl')) { 
     355            $user_link_options['bp_memberpage'] = __('BP Member Page'); 
     356        } 
    354357        if (AA_is_wpmu()) { 
    355358            $user_link_options['blog'] = __('Blog'); 
  • author-avatars/trunk/lib/UserList.class.php

    r118704 r118924  
    203203                    if (!empty($blog->siteurl)) $link = $blog->siteurl; 
    204204                } 
    205                 break;   
     205                break; 
     206            case 'bp_memberpage': 
     207                if (function_exists('bp_core_get_userurl')) { 
     208                    $link = bp_core_get_userurl($user->user_id); 
     209                } 
     210                break; 
    206211        } 
    207212         
Note: See TracChangeset for help on using the changeset viewer.