Changeset 2342
- Timestamp:
- 01/18/2010 05:49:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r2320 r2342 49 49 do_action( 'xprofile_group_after_save', $this ); 50 50 51 return true; 51 if ( $this->id ) 52 return $this->id; 53 else 54 return $wpdb->insert_id; 52 55 } 53 56 … … 305 308 if ( $wpdb->query($sql) !== null ) { 306 309 310 if ( $this->id ) 311 $field_id = $this->id; 312 else 313 $field_id = $wpdb->insert_id; 314 307 315 // Only do this if we are editing an existing field 308 316 if ( $this->id != null ) { … … 373 381 if ( !$error ) { 374 382 do_action( 'xprofile_field_after_save', $this ); 375 return true;383 return $field_id; 376 384 } else { 377 385 return false;
Note: See TracChangeset
for help on using the changeset viewer.