Skip to:
Content

BuddyPress.org

Ticket #8890: 8890.patch

File 8890.patch, 5.4 KB (added by upadalavipul, 3 years ago)
  • src/bp-xprofile/classes/class-bp-xprofile-group.php

     
    8484         *
    8585         * @since 1.0.0
    8686         *
    87          * @global wpdb $wpdb WordPress database object.
    88          *
    8987         * @param int $id Field group ID.
    9088         * @return boolean
    9189         */
     
    467465         *
    468466         * @since 5.0.0
    469467         * @since 11.0.0 `$profile_group_id` accepts an array of profile group ids.
     468         *
     469         * @global wpdb $wpdb WordPress database object.
    470470         *
    471471         * @param array $args {
    472472         *    Array of optional arguments.
     
    524524         * Gets group field IDs, based on passed parameters.
    525525         *
    526526         * @since 5.0.0
     527         *
     528         * @global wpdb $wpdb WordPress database object.
    527529         *
    528530         * @param array $group_ids Array of group IDs.
    529531         * @param array $args {
     
    616618         * Get data about a set of groups, based on IDs.
    617619         *
    618620         * @since 2.0.0
     621         *
     622         * @global wpdb $wpdb WordPress database object.
    619623         *
    620624         * @param array $group_ids Array of IDs.
    621625         * @return array
     
    786790         * Fetch the admin-set preferences for all fields.
    787791         *
    788792         * @since 1.6.0
     793         *
     794         * @global wpdb $wpdb WordPress database object.
    789795         *
    790796         * @return array $default_visibility_levels An array, keyed by field_id, of default
    791797         *                                          visibility level + allow_custom
  • src/bp-xprofile/classes/class-bp-xprofile-meta-query.php

     
    152152         * "First-order" means that it's an array with a 'key' or 'value'.
    153153         *
    154154         * @since 2.3.0
     155         *
     156         * @global wpdb $wpdb WordPress database object.
    155157         *
    156158         * @param array  $clause       Query clause, passed by reference.
    157159         * @param array  $parent_query Parent query array.
  • src/bp-xprofile/classes/class-bp-xprofile-profiledata.php

     
    7676         * Populates the XProfile profile data.
    7777         *
    7878         * @since 1.0.0
     79         *
     80         * @global wpdb $wpdb WordPress database object.
    7981         *
    8082         * @param int $field_id Field ID to populate.
    8183         * @param int $user_id  User ID to populate for.
     
    175177         * Save the data for the XProfile field.
    176178         *
    177179         * @since 1.0.0
     180         *
     181         * @global wpdb $wpdb WordPress database object.
    178182         *
    179183         * @return bool
    180184         */
     
    317321         * @since 2.0.0
    318322         * @since 8.0.0 Checks if a null field data is an xProfile WP Field.
    319323         *              Adds a new parameter `$field_type_objects` to pass the list of field type objects.
     324         *
     325         * @global wpdb $wpdb WordPress database object.
    320326         *
    321327         * @param int   $user_id            ID of user whose data is being queried.
    322328         * @param array $field_ids          Array of field IDs to query for.
     
    474480         * Get the user's field data id by the id of the xprofile field.
    475481         *
    476482         * @since 1.6.0
     483         *
     484         * @global wpdb $wpdb WordPress database object.
    477485         *
    478486         * @param int $field_id Field ID being queried for.
    479487         * @param int $user_id  User ID associated with field.
     
    507515         *
    508516         * @since 1.0.0
    509517         * @since 8.0.0 Checks if a null field data is an xProfile WP Field.
     518         *
     519         * @global wpdb $wpdb WordPress database object.
    510520         *
    511521         * @param int            $field_id ID of the field.
    512522         * @param int|array|null $user_ids ID or IDs of user(s).
     
    615625         * Get profile field values by field name and user ID.
    616626         *
    617627         * @since 1.0.0
     628         *
     629         * @global wpdb $wpdb WordPress database object.
     630         *
    618631         * @deprecated 8.0.0 This function is not used anymore.
    619632         *
    620633         * @param array|string $fields  Field(s) to get.
     
    681694         * Delete field.
    682695         *
    683696         * @since 1.0.0
     697         *
     698         * @global wpdb $wpdb WordPress database object.
    684699         *
    685700         * @param int $field_id ID of the field to delete.
    686701         * @return bool
     
    701716         * Get time for last XProfile field data update by user.
    702717         *
    703718         * @since 1.0.0
     719         *
     720         * @global wpdb $wpdb WordPress database object.
    704721         *
    705722         * @param int $user_id User ID to get time for.
    706723         * @return null|string
     
    719736         * Delete all data for provided user ID.
    720737         *
    721738         * @since 1.0.0
     739         *
     740         * @global wpdb $wpdb WordPress database object.
    722741         *
    723742         * @param int $user_id User ID to remove data for.
    724743         * @return false|int
     
    745764         * Get random field type by user ID.
    746765         *
    747766         * @since 1.0.0
     767         *
     768         * @global wpdb $wpdb WordPress database object.
    748769         *
    749770         * @param int    $user_id          User ID to query for.
    750771         * @param string $exclude_fullname SQL portion used to exclude by field ID.
  • src/bp-xprofile/classes/class-bp-xprofile-query.php

     
    340340         * "First-order" means that it's an array with a 'field' or 'value'.
    341341         *
    342342         * @since 2.2.0
     343         *
     344         * @global wpdb $wpdb WordPress database object.
    343345         *
    344346         * @param array $clause       Query clause.
    345347         * @param array $parent_query Parent query array.