Skip to:
Content

BuddyPress.org

Ticket #7306: 7306.patch

File 7306.patch, 1.2 KB (added by imath, 3 years ago)
  • src/bp-xprofile/bp-xprofile-functions.php

    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, $ 
    983983 * @param bool   $single      Optional. If true, return only the first value of the
    984984 *                            specified meta_key. This parameter has no effect if meta_key is not
    985985 *                            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.
    987992 */
    988993function bp_xprofile_get_meta( $object_id, $object_type, $meta_key = '', $single = true ) {
    989994        // Sanitize object type.