Skip to:
Content

BuddyPress.org

Ticket #8890: 8890.2.patch

File 8890.2.patch, 5.2 KB (added by upadalavipul, 3 years ago)

Few more files in improve various globals documentation.

  • src/bp-xprofile/bp-xprofile-filters.php

     
    563563 * Filter meta queries to modify for the xprofile data schema.
    564564 *
    565565 * @since 2.0.0
     566 *
     567 * @global wpdb $wpdb WordPress database object.
    566568 *
    567569 * @access private Do not use.
    568570 *
  • src/bp-xprofile/bp-xprofile-functions.php

     
    762762 * When search_terms are passed to BP_User_Query, search against xprofile fields.
    763763 *
    764764 * @since 2.0.0
     765 *
     766 * @global wpdb $wpdb WordPress database object.
    765767 *
    766768 * @param array         $sql   Clauses in the user_id SQL query.
    767769 * @param BP_User_Query $query User query object.
     
    960962 * Delete a piece of xprofile metadata.
    961963 *
    962964 * @since 1.5.0
     965 *
     966 * @global wpdb $wpdb WordPress database object.
    963967 *
    964968 * @param int         $object_id   ID of the object the metadata belongs to.
    965969 * @param string      $object_type Type of object. 'group', 'field', or 'data'.
     
    11411145 * Return the field ID for the Full Name xprofile field.
    11421146 *
    11431147 * @since 2.0.0
     1148 *
     1149 * @global wpdb $wpdb WordPress database object.
    11441150 *
    11451151 * @return int Field ID.
    11461152 */
     
    14701476 * Returns the signup field IDs.
    14711477 *
    14721478 * @since 8.0.0
     1479 *
     1480 * @global wpdb $wpdb WordPress database object.
    14731481 *
    14741482 * @return int[] The signup field IDs.
    14751483 */
  • src/bp-xprofile/bp-xprofile-template.php

     
    9797 * Start off the profile groups.
    9898 *
    9999 * @since 1.0.0
     100 *
     101 * @global object $profile_template
    100102 *
    101103 * @return mixed
    102104 */
     
    109111 * Set up the profile groups.
    110112 *
    111113 * @since 1.0.0
     114 *
     115 * @global object $profile_template
    112116 *
    113117 * @return mixed
    114118 */
     
    121125 * Whether or not the group has fields to display.
    122126 *
    123127 * @since 1.0.0
     128 *
     129 * @global object $profile_template
    124130 *
    125131 * @return mixed
    126132 */
     
    146152         * Return the class attribute for a field.
    147153         *
    148154         * @since 1.1.0
     155         *
     156         * @global object $profile_template
    149157         *
    150158         * @param string|bool $class Extra classes to append to class attribute.
    151159         * @return string
     
    450458         * Generate a comma-separated list of field IDs that are to be submitted on profile edit.
    451459         *
    452460         * @since 2.1.0
     461         *
     462         * @global object $profile_template
    453463         *
    454464         * @return string
    455465         */
     
    479489 * Return the XProfile fields.
    480490 *
    481491 * @since 1.0.0
     492 *
     493 * @global object $profile_template
    482494 *
    483495 * @return mixed
    484496 */
     
    491503 * Sets up the XProfile field.
    492504 *
    493505 * @since 1.0.0
     506 *
     507 * @global object $profile_template
    494508 *
    495509 * @return mixed
    496510 */
  • src/bp-xprofile/classes/class-bp-xprofile-data-template.php

     
    301301         * Sets up the profile group.
    302302         *
    303303         * @since 1.0.0
     304         *
     305         * @global $group.
     306         *
    304307         */
    305308        public function the_profile_group() {
    306309                global $group;
     
    392395         * Set up the profile fields.
    393396         *
    394397         * @since 1.0.0
     398         *
     399         * @global $field.
     400         *
    395401         */
    396402        public function the_profile_field() {
    397403                global $field;
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php

     
    155155         * to include the WordPress field value into the xProfile fields loop.
    156156         *
    157157         * @since 8.0.0
     158         *
     159         * @global wpdb $wpdb WordPress database object.
    158160         *
    159161         * @param integer $user_id The user ID.
    160162         * @param integer $field_id The xProfile field ID.
  • src/bp-xprofile/classes/class-bp-xprofile-field.php

     
    254254         *
    255255         * @since 2.4.0
    256256         * @since 2.8.0 Added `$user_id` and `$get_data` parameters.
     257         *
     258         * @global wpdb $wpdb WordPress database object.
    257259         *
    258260         * @static
    259261         *
     
    926928
    927929        /**
    928930         * Get the type for provided field ID.
     931         *
     932         * @global wpdb $wpdb WordPress database object.
    929933         *
    930934         * @param int $field_id Field ID to get type of.
    931935         * @return bool|null|string
     
    10581062         * Gets the IDs of fields applicable for a given member type or array of member types.
    10591063         *
    10601064         * @since 2.4.0
     1065         *
     1066         * global wpdb $wpdb WordPress database object.
    10611067         *
    10621068         * @param string|array $member_types Member type or array of member types. Use 'any' to return unrestricted
    10631069         *                                   fields (those available for anyone, regardless of member type).