Skip to:
Content

BuddyPress.org

Changeset 11852


Ignore:
Timestamp:
02/10/2018 11:11:06 AM (8 years ago)
Author:
hnla
Message:

Nouveau: Edit profile link, default-front.php

The link is intended to reference the displayed users WP profile, the link is allowed for admins(bp_moderate) users too, however the link always resolves to the current logged in user regardless of whether a hardcoded user id is set ( e.g bp_displayed_user_id() ) so admins will resolve to their personal WP profile not the displayed user.

This commit removes the admin link view, only showing link for bp_is_my_profile() The admin provision is simply a convenience and not overly important.

Props vapvarun

Fixes #7691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/default-front.php

    r11686 r11852  
    3333                        <?php endif ; ?>
    3434
    35                         <?php if ( bp_is_my_profile() || bp_current_user_can( 'bp_moderate' ) ) :
     35                        <?php if ( bp_is_my_profile() ) :
    3636
    3737                                bp_nouveau_member_description_edit_link();
Note: See TracChangeset for help on using the changeset viewer.