Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/20/2023 06:34:46 AM (12 months ago)
Author:
imath
Message:

Improve inline doc, informing about global variable usage in functions

In various xProfile component files, used globals are:

  • $wpdb: the WordPress database object,
  • $profile_template: the xProfile data template object,
  • $group: the current group of profile fields in a loop,
  • $field: the current field in a loop.

Props upadalavipul

Fixes #8890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r13471 r13484  
    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.
     
    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.
     
    11421146 *
    11431147 * @since 2.0.0
     1148 *
     1149 * @global wpdb $wpdb WordPress database object.
    11441150 *
    11451151 * @return int Field ID.
     
    14711477 *
    14721478 * @since 8.0.0
     1479 *
     1480 * @global wpdb $wpdb WordPress database object.
    14731481 *
    14741482 * @return int[] The signup field IDs.
Note: See TracChangeset for help on using the changeset viewer.