Changeset 13978
- Timestamp:
- 07/27/2024 03:10:45 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-admin.php
r13976 r13978 763 763 // Editing your own profile, so recheck some vars. 764 764 if ( true === $this->is_self_profile ) { 765 766 765 // Use profile.php as the edit page. 767 766 $edit_page = 'profile.php'; … … 778 777 } 779 778 779 $this->edit_profile_url = add_query_arg( $this->edit_profile_args, admin_url( $edit_page ) ); 780 $this->edit_url = admin_url( $edit_page ); 781 780 782 if ( is_user_admin() ) { 781 783 $this->edit_profile_url = add_query_arg( $this->edit_profile_args, user_admin_url( 'profile.php' ) ); 782 784 $this->edit_url = user_admin_url( 'profile.php' ); 783 785 784 } elseif ( is_blog_admin() ) { 786 // On a blog of a network, Extended Profile URL needs to rely on the users.php one for the blog Admin. 787 } elseif ( is_blog_admin() && current_user_can( 'remove_users' ) ) { 785 788 $this->edit_profile_url = add_query_arg( $this->edit_profile_args, admin_url( 'users.php' ) ); 786 789 $this->edit_url = admin_url( $edit_page );
Note: See TracChangeset
for help on using the changeset viewer.