Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/07/2023 12:18:55 AM (2 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-messages/classes/class-bp-messages-notice.php

    r13372 r13395  
    7474     * Runs during constructor.
    7575     *
    76      * @global BuddyPress $bp The one true BuddyPress instance.
    7776     * @global wpdb $wpdb WordPress database object.
    7877     *
     
    9796     * Saves a notice.
    9897     *
    99      * @global BuddyPress $bp The one true BuddyPress instance.
    10098     * @global wpdb $wpdb WordPress database object.
    10199     *
     
    181179     * Deletes a notice.
    182180     *
    183      * @global BuddyPress $bp The one true BuddyPress instance.
    184181     * @global wpdb $wpdb WordPress database object.
    185182     *
     
    226223     * To get all notices, pass a value of -1 to pag_num.
    227224     *
    228      * @global BuddyPress $bp The one true BuddyPress instance.
    229225     * @global wpdb $wpdb WordPress database object.
    230226     *
     
    278274     * Returns the total number of recorded notices.
    279275     *
    280      * @global BuddyPress $bp The one true BuddyPress instance.
    281276     * @global wpdb $wpdb WordPress database object.
    282277     *
     
    305300     * Returns the active notice that should be displayed on the front end.
    306301     *
    307      * @global BuddyPress $bp The one true BuddyPress instance.
    308302     * @global wpdb $wpdb WordPress database object.
    309303     *
Note: See TracChangeset for help on using the changeset viewer.