Changeset 7764 for trunk/bp-members/bp-members-functions.php
- Timestamp:
- 01/29/2014 05:01:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-functions.php
r7675 r7764 564 564 remove_action( 'make_ham_user', 'bp_core_mark_user_ham_admin' ); 565 565 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 566 572 // When marking as spam in the Dashboard, these actions are handled by WordPress 567 if ( ! is_admin()) {573 if ( ! $is_admin ) { 568 574 569 575 // Get the blogs for the user
Note: See TracChangeset
for help on using the changeset viewer.