Changeset 6924
- Timestamp:
- 04/19/2013 06:48:03 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r6654 r6924 1573 1573 return false; 1574 1574 1575 // No button if you are the current user in a loop 1576 if ( true === $this->block_self && is_user_logged_in() && bp_loggedin_user_id() === bp_get_member_user_id() ) 1577 return false; 1578 1575 1579 // Wrapper properties 1576 1580 if ( false !== $this->wrapper ) { -
trunk/bp-members/bp-members-template.php
r6815 r6924 384 384 function bp_get_member_user_id() { 385 385 global $members_template; 386 387 return apply_filters( 'bp_get_member_user_id', $member s_template->member->id );386 $member_id = isset( $members_template->member->id ) ? (int) $members_template->member->id : false; 387 return apply_filters( 'bp_get_member_user_id', $member_id ); 388 388 } 389 389
Note: See TracChangeset
for help on using the changeset viewer.