Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/20/2023 06:34:46 AM (3 years 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/classes/class-bp-xprofile-data-template.php

    r13394 r13484  
    302302     *
    303303     * @since 1.0.0
     304     *
     305     * @global object $group Current group of profile fields.
     306     *
    304307     */
    305308    public function the_profile_group() {
     
    393396     *
    394397     * @since 1.0.0
     398     *
     399     * @global object $field Current profile field.
     400     *
    395401     */
    396402    public function the_profile_field() {
Note: See TracChangeset for help on using the changeset viewer.