Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/07/2023 12:18:55 AM (4 years ago)
Author:
espellcaste
Message:

PHPDoc: adding improvements to the @global tag definition.

The @global tag is used to inform PHPDoc of a global variable or its usage. The tag was updated where necessary and invalid examples were removed.

Closes ​https://github.com/buddypress/buddypress/pull/53
Fixes #8786

File:
1 edited

Legend:

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

    r13394 r13395  
    207207         * @since 1.1.0
    208208         *
    209          * @global object $wpdb
     209         * @global wpdb $wpdb WordPress database object.
    210210         * @global object $userdata
    211211         *
    … …  
    347347         * @since 1.1.0
    348348         *
    349          * @global object $wpdb
     349         * @global wpdb $wpdb WordPress database object.
    350350         *
    351351         * @param boolean $delete_data Whether or not to delete data.
    … …  
    405405         * @since 1.1.0
    406406         *
    407          * @global object $wpdb
     407         * @global wpdb $wpdb WordPress database object.
    408408         *
    409409         * @return boolean
    … …  
    562562         * @since 1.2.0
    563563         *
    564          * @global BuddyPress $bp The one true BuddyPress instance.
    565564         * @global wpdb $wpdb WordPress database object.
    566565         *
    … …  
    608607         * @since 1.2.0
    609608         *
    610          * @global object $wpdb
     609         * @global wpdb $wpdb WordPress database object.
    611610         */
    612611        public function delete_children() {
    … …  
    948947         * @since 1.2.0
    949948         *
    950          * @global object $wpdb
     949         * @global wpdb $wpdb WordPress database object.
    951950         *
    952951         * @param int $group_id ID of the field group to delete fields from.
    … …  
    978977         * @since 1.5.0
    979978         *
    980          * @global object $wpdb
     979         * @global wpdb $wpdb WordPress database object.
    981980         *
    982981         * @param string $field_name Name of the field to query the ID for.
    … …  
    10071006         * @since 1.5.0
    10081007         *
    1009          * @global object $wpdb
     1008         * @global wpdb $wpdb WordPress database object.
    10101009         *
    10111010         * @param int      $field_id       ID of the field to update.
    … …  
    11261125         * @since 2.2.0
    11271126         *
    1128          * @global $message
     1127         * @global string $message The feedback message to show.
    11291128         *
    11301129         * @return boolean
Note: See TracChangeset for help on using the changeset viewer.