Ticket #8890: 8890.patch
| File 8890.patch, 5.4 KB (added by , 3 years ago) |
|---|
-
src/bp-xprofile/classes/class-bp-xprofile-group.php
84 84 * 85 85 * @since 1.0.0 86 86 * 87 * @global wpdb $wpdb WordPress database object.88 *89 87 * @param int $id Field group ID. 90 88 * @return boolean 91 89 */ … … 467 465 * 468 466 * @since 5.0.0 469 467 * @since 11.0.0 `$profile_group_id` accepts an array of profile group ids. 468 * 469 * @global wpdb $wpdb WordPress database object. 470 470 * 471 471 * @param array $args { 472 472 * Array of optional arguments. … … 524 524 * Gets group field IDs, based on passed parameters. 525 525 * 526 526 * @since 5.0.0 527 * 528 * @global wpdb $wpdb WordPress database object. 527 529 * 528 530 * @param array $group_ids Array of group IDs. 529 531 * @param array $args { … … 616 618 * Get data about a set of groups, based on IDs. 617 619 * 618 620 * @since 2.0.0 621 * 622 * @global wpdb $wpdb WordPress database object. 619 623 * 620 624 * @param array $group_ids Array of IDs. 621 625 * @return array … … 786 790 * Fetch the admin-set preferences for all fields. 787 791 * 788 792 * @since 1.6.0 793 * 794 * @global wpdb $wpdb WordPress database object. 789 795 * 790 796 * @return array $default_visibility_levels An array, keyed by field_id, of default 791 797 * visibility level + allow_custom -
src/bp-xprofile/classes/class-bp-xprofile-meta-query.php
152 152 * "First-order" means that it's an array with a 'key' or 'value'. 153 153 * 154 154 * @since 2.3.0 155 * 156 * @global wpdb $wpdb WordPress database object. 155 157 * 156 158 * @param array $clause Query clause, passed by reference. 157 159 * @param array $parent_query Parent query array. -
src/bp-xprofile/classes/class-bp-xprofile-profiledata.php
76 76 * Populates the XProfile profile data. 77 77 * 78 78 * @since 1.0.0 79 * 80 * @global wpdb $wpdb WordPress database object. 79 81 * 80 82 * @param int $field_id Field ID to populate. 81 83 * @param int $user_id User ID to populate for. … … 175 177 * Save the data for the XProfile field. 176 178 * 177 179 * @since 1.0.0 180 * 181 * @global wpdb $wpdb WordPress database object. 178 182 * 179 183 * @return bool 180 184 */ … … 317 321 * @since 2.0.0 318 322 * @since 8.0.0 Checks if a null field data is an xProfile WP Field. 319 323 * Adds a new parameter `$field_type_objects` to pass the list of field type objects. 324 * 325 * @global wpdb $wpdb WordPress database object. 320 326 * 321 327 * @param int $user_id ID of user whose data is being queried. 322 328 * @param array $field_ids Array of field IDs to query for. … … 474 480 * Get the user's field data id by the id of the xprofile field. 475 481 * 476 482 * @since 1.6.0 483 * 484 * @global wpdb $wpdb WordPress database object. 477 485 * 478 486 * @param int $field_id Field ID being queried for. 479 487 * @param int $user_id User ID associated with field. … … 507 515 * 508 516 * @since 1.0.0 509 517 * @since 8.0.0 Checks if a null field data is an xProfile WP Field. 518 * 519 * @global wpdb $wpdb WordPress database object. 510 520 * 511 521 * @param int $field_id ID of the field. 512 522 * @param int|array|null $user_ids ID or IDs of user(s). … … 615 625 * Get profile field values by field name and user ID. 616 626 * 617 627 * @since 1.0.0 628 * 629 * @global wpdb $wpdb WordPress database object. 630 * 618 631 * @deprecated 8.0.0 This function is not used anymore. 619 632 * 620 633 * @param array|string $fields Field(s) to get. … … 681 694 * Delete field. 682 695 * 683 696 * @since 1.0.0 697 * 698 * @global wpdb $wpdb WordPress database object. 684 699 * 685 700 * @param int $field_id ID of the field to delete. 686 701 * @return bool … … 701 716 * Get time for last XProfile field data update by user. 702 717 * 703 718 * @since 1.0.0 719 * 720 * @global wpdb $wpdb WordPress database object. 704 721 * 705 722 * @param int $user_id User ID to get time for. 706 723 * @return null|string … … 719 736 * Delete all data for provided user ID. 720 737 * 721 738 * @since 1.0.0 739 * 740 * @global wpdb $wpdb WordPress database object. 722 741 * 723 742 * @param int $user_id User ID to remove data for. 724 743 * @return false|int … … 745 764 * Get random field type by user ID. 746 765 * 747 766 * @since 1.0.0 767 * 768 * @global wpdb $wpdb WordPress database object. 748 769 * 749 770 * @param int $user_id User ID to query for. 750 771 * @param string $exclude_fullname SQL portion used to exclude by field ID. -
src/bp-xprofile/classes/class-bp-xprofile-query.php
340 340 * "First-order" means that it's an array with a 'field' or 'value'. 341 341 * 342 342 * @since 2.2.0 343 * 344 * @global wpdb $wpdb WordPress database object. 343 345 * 344 346 * @param array $clause Query clause. 345 347 * @param array $parent_query Parent query array.