Changeset 8135 for trunk/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 03/14/2014 01:12:13 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-functions.php
r8134 r8135 579 579 global $wpdb; 580 580 581 // Legacy - no empty object id 582 if ( empty( $object_id ) ) { 583 return false; 584 } 585 586 // Legacy - sanitize object type 581 // Sanitize object type 587 582 if ( ! in_array( $object_type, array( 'group', 'field', 'data' ) ) ) { 588 583 return false; … … 604 599 add_filter( 'query', 'bp_xprofile_filter_meta_query' ); 605 600 601 $retval = false; 606 602 foreach ( $keys as $key ) { 607 603 $retval = delete_metadata( 'xprofile_' . $object_type, $object_id, $key, $meta_value, $delete_all ); … … 630 626 */ 631 627 function bp_xprofile_get_meta( $object_id, $object_type, $meta_key = '', $single = true ) { 632 // Legacy - sanitize object type628 // Sanitize object type 633 629 if ( ! in_array( $object_type, array( 'group', 'field', 'data' ) ) ) { 634 630 return false;
Note: See TracChangeset
for help on using the changeset viewer.