Changeset 8132 for trunk/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 03/14/2014 12:50:26 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-functions.php
r8130 r8132 665 665 * metadata entries with the specified value. Otherwise, update all 666 666 * entries. 667 * @return bool True on success, false on failure. 667 * @return bool|int Returns false on failure. On successful update of existing 668 * metadata, returns true. On successful creation of new metadata, 669 * returns the integer ID of the new metadata row. 668 670 */ 669 671 function bp_xprofile_update_meta( $object_id, $object_type, $meta_key, $meta_value, $prev_value = '' ) { … … 674 676 remove_filter( 'query', 'bp_xprofile_filter_meta_query' ); 675 677 remove_filter( 'query', 'bp_filter_metaid_column_name' ); 676 677 // Legacy - if we fall through to add_metadata(), return true rather678 // than the integer meta_id679 if ( is_int( $retval ) ) {680 $retval = (bool) $retval;681 }682 678 683 679 return $retval;
Note: See TracChangeset
for help on using the changeset viewer.