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