Changeset 8081
- Timestamp:
- 03/08/2014 12:33:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-template.php
r7846 r8081 665 665 666 666 // Declare local variables 667 $data = false; 668 $user_id = 0; 667 $data = false; 669 668 670 669 // Guess at default $user_id 670 $default_user_id = 0; 671 671 if ( !empty( $members_template->member->id ) ) 672 $ user_id = $members_template->member->id;672 $default_user_id = $members_template->member->id; 673 673 elseif ( bp_displayed_user_id() ) 674 $ user_id = bp_displayed_user_id();674 $default_user_id = bp_displayed_user_id(); 675 675 676 676 $defaults = array( 677 'field' => false, // Field name678 'user_id' => $ user_id677 'field' => false, 678 'user_id' => $default_user_id, 679 679 ); 680 680
Note: See TracChangeset
for help on using the changeset viewer.