diff --git src/bp-xprofile/bp-xprofile-functions.php src/bp-xprofile/bp-xprofile-functions.php
index 95d2e1a10..f13a9239f 100644
|
|
function bp_xprofile_delete_meta( $object_id, $object_type, $meta_key = false, $ |
983 | 983 | * @param bool $single Optional. If true, return only the first value of the |
984 | 984 | * specified meta_key. This parameter has no effect if meta_key is not |
985 | 985 | * specified. Default: true. |
986 | | * @return mixed Meta value if found. False on failure. |
| 986 | * @return mixed An array of values if `$single` is false. |
| 987 | * The value of the meta field if `$single` is true. |
| 988 | * False for an invalid `$object_type` (one of `group`, `field`, `data`). |
| 989 | * False for an invalid `$object_id` (non-numeric, zero, or negative value), |
| 990 | * or if `$meta_type` is not specified. |
| 991 | * An empty string if a valid but non-existing object ID is passed. |
987 | 992 | */ |
988 | 993 | function bp_xprofile_get_meta( $object_id, $object_type, $meta_key = '', $single = true ) { |
989 | 994 | // Sanitize object type. |