Changeset 7015 for trunk/tests/includes/testcase.php
- Timestamp:
- 05/07/2013 11:45:58 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/includes/testcase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/testcase.php
r6932 r7015 137 137 * directory queries. This is a shorthand wrapper for the user factory 138 138 * create() method. 139 * 140 * Also set a display name 139 141 */ 140 142 function create_user( $args = array() ) { … … 151 153 update_user_meta( $user_id, 'last_activity', $last_activity ); 152 154 155 if ( bp_is_active( 'xprofile' ) ) { 156 $user = new WP_User( $user_id ); 157 xprofile_set_field_data( 1, $user_id, $user->display_name ); 158 } 159 153 160 return $user_id; 154 161 }
Note: See TracChangeset
for help on using the changeset viewer.