Skip to:
Content

BuddyPress.org

Changeset 13475


Ignore:
Timestamp:
05/13/2023 08:57:35 AM (4 years ago)
Author:
imath
Message:

Improve inline doc, informing about $wpdb usage in functions

Props upadalavipul

Fixes #8890

Location:
trunk/src/bp-xprofile/classes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r13414 r13475  
    8484         *
    8585         * @since 1.0.0
    86          *
    87          * @global wpdb $wpdb WordPress database object.
    8886         *
    8987         * @param int $id Field group ID.
    … …  
    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 {
    … …  
    525525         *
    526526         * @since 5.0.0
     527         *
     528         * @global wpdb $wpdb WordPress database object.
    527529         *
    528530         * @param array $group_ids Array of group IDs.
    … …  
    617619         *
    618620         * @since 2.0.0
     621         *
     622         * @global wpdb $wpdb WordPress database object.
    619623         *
    620624         * @param array $group_ids Array of IDs.
    … …  
    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
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-meta-query.php

    r13394 r13475  
    153153         *
    154154         * @since 2.3.0
     155         *
     156         * @global wpdb $wpdb WordPress database object.
    155157         *
    156158         * @param array  $clause       Query clause, passed by reference.
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php

    r13414 r13475  
    7777         *
    7878         * @since 1.0.0
     79         *
     80         * @global wpdb $wpdb WordPress database object.
    7981         *
    8082         * @param int $field_id Field ID to populate.
    … …  
    176178         *
    177179         * @since 1.0.0
     180         *
     181         * @global wpdb $wpdb WordPress database object.
    178182         *
    179183         * @return bool
    … …  
    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.
    … …  
    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.
    … …  
    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.
    … …  
    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         *
    … …  
    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.
    … …  
    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.
    … …  
    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.
    … …  
    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.
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-query.php

    r13394 r13475  
    341341         *
    342342         * @since 2.2.0
     343         *
     344         * @global wpdb $wpdb WordPress database object.
    343345         *
    344346         * @param array $clause       Query clause.
Note: See TracChangeset for help on using the changeset viewer.