Changeset 8135 for trunk/bp-activity/bp-activity-functions.php
- Timestamp:
- 03/14/2014 01:12:13 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r8133 r8135 572 572 global $wpdb, $bp; 573 573 574 // Legacy - Return false if any of the above values are not set575 if ( ! is_numeric( $activity_id ) ) {576 return false;577 }578 579 574 // Legacy - if no meta_key is passed, delete all for the item 580 575 if ( empty( $meta_key ) ) { … … 616 611 */ 617 612 function bp_activity_get_meta( $activity_id = 0, $meta_key = '', $single = true ) { 618 619 // Make sure activity_id is valid620 if ( empty( $activity_id ) || ! is_numeric( $activity_id ) ) {621 return false;622 }623 624 613 add_filter( 'query', 'bp_filter_metaid_column_name' ); 625 614 $retval = get_metadata( 'activity', $activity_id, $meta_key, $single ); … … 647 636 */ 648 637 function bp_activity_update_meta( $activity_id, $meta_key, $meta_value, $prev_value = '' ) { 649 650 // Legacy - Make sure activity_id is valid651 if ( ! is_numeric( $activity_id ) ) {652 return false;653 }654 655 638 add_filter( 'query', 'bp_filter_metaid_column_name' ); 656 639 $retval = update_metadata( 'activity', $activity_id, $meta_key, $meta_value, $prev_value );
Note: See TracChangeset
for help on using the changeset viewer.