Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/29/2014 05:01:17 PM (11 years ago)
Author:
johnjamesjacoby
Message:

First pass at introducing BuddyPress profile editing to /wp-admin:

  • New bp-members-admin.php and accompanying assets to handle the initial admin page creation (outside of XProfile).
  • New stats template functions in Blogs, Friends, and Groups components, to provide additional meta data about a members community involvement.
  • Modifies some existing XProfile admin/template/filters to make it more accommodating to querying for profile data outside of BuddyPress's traditional displayed_user context.
  • Props imath, boonebgorges, johnjamesjacoby. Fixes #5197.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-functions.php

    r7675 r7764  
    564564    remove_action( 'make_ham_user',  'bp_core_mark_user_ham_admin'  );
    565565
     566    // Determine if we are on an admin page
     567    $is_admin = is_admin();
     568    if ( $is_admin && ! defined( 'DOING_AJAX' ) ) {
     569        $is_admin = (bool) ( buddypress()->members->admin->user_page !== get_current_screen()->id );
     570    }
     571
    566572    // When marking as spam in the Dashboard, these actions are handled by WordPress
    567     if ( !is_admin() ) {
     573    if ( ! $is_admin ) {
    568574
    569575        // Get the blogs for the user
Note: See TracChangeset for help on using the changeset viewer.