Skip to:
Content

BuddyPress.org

Changeset 1695


Ignore:
Timestamp:
08/25/2009 01:39:35 AM (17 years ago)
Author:
apeatling
Message:

Allow site admins to edit a user's profile

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-sn-framework/profile/profile-loop.php

    r1655 r1695  
    4141       
    4242                <div class="button-block">
    43                         <?php if ( bp_is_home() ) : ?>
     43                        <?php if ( bp_is_home() || is_site_admin() ) : ?>
    4444                               
    4545                                <?php bp_edit_profile_button() ?>
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r1655 r1695  
    638638        ?>
    639639        <div class="generic-button">
    640                 <a class="edit" title="<?php _e( 'Edit Profile', 'buddypress' ) ?>" href="<?php echo $bp->loggedin_user->domain . $bp->profile->slug ?>/edit"><?php _e( 'Edit Profile', 'buddypress' ) ?></a>
     640                <a class="edit" title="<?php _e( 'Edit Profile', 'buddypress' ) ?>" href="<?php echo $bp->displayed_user->domain . $bp->profile->slug ?>/edit"><?php _e( 'Edit Profile', 'buddypress' ) ?></a>
    641641        </div>
    642642        <?php
Note: See TracChangeset for help on using the changeset viewer.