Skip to:
Content

BuddyPress.org

Changeset 8455


Ignore:
Timestamp:
05/27/2014 04:35:25 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Add support for editing extended member profiles via /network/site-users.php. See #5623.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-admin.php

    r8444 r8455  
    173173                add_action( 'edit_user_profile',        array( $this, 'profile_nav'       ), 99, 1 );
    174174                add_action( 'show_user_profile',        array( $this, 'profile_nav'       ), 99, 1 );
     175
     176                // Editing users of a specific site
     177                add_action( "admin_head-site-users.php", array( $this, 'profile_admin_head' ) );
    175178
    176179                // Add a row action to users listing
     
    480483
    481484                // Force the parent file to users.php to open the correct top level menu
    482                 $parent_file  = 'users.php';
    483                 $submenu_file = 'users.php';
     485                // but only if not editing a site via the network site editing page.
     486                if ( 'sites.php' !== $parent_file ) {
     487                        $parent_file  = 'users.php';
     488                        $submenu_file = 'users.php';
     489                }
    484490
    485491                // Editing your own profile, so recheck some vars
     
    495501                        }
    496502
    497                 // Not editing yourserf, so use user-edit.php
     503                // Not editing yourself, so use user-edit.php
    498504                } else {
    499505                        $edit_page = 'user-edit.php';
Note: See TracChangeset for help on using the changeset viewer.