Skip to:
Content

BuddyPress.org


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

Improve inline doc, informing about $wpdb usage in functions

Props upadalavipul

Fixes #8890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.
Note: See TracChangeset for help on using the changeset viewer.