Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 05:45:18 PM (20 months ago)
Author:
espellcaste
Message:

PHPDoc: Correct placement of @since tags.

The @since tag should added before @global, @param, and @return.

Props shailu25
Closes https://github.com/buddypress/buddypress/pull/310
See #9164
Fixes #9168

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/classes/class-bp-messages-notice.php

    r13414 r13896  
    7575     * Runs during constructor.
    7676     *
    77      * @global wpdb $wpdb WordPress database object.
    78      *
    79      * @since 1.0.0
     77     * @since 1.0.0
     78     *
     79     * @global wpdb $wpdb WordPress database object.
    8080     */
    8181    public function populate() {
     
    9797     * Saves a notice.
    9898     *
    99      * @global wpdb $wpdb WordPress database object.
    100      *
    101      * @since 1.0.0
     99     * @since 1.0.0
     100     *
     101     * @global wpdb $wpdb WordPress database object.
    102102     *
    103103     * @return bool
     
    180180     * Deletes a notice.
    181181     *
    182      * @global wpdb $wpdb WordPress database object.
    183      *
    184      * @since 1.0.0
     182     * @since 1.0.0
     183     *
     184     * @global wpdb $wpdb WordPress database object.
    185185     *
    186186     * @return bool
     
    224224     * To get all notices, pass a value of -1 to pag_num.
    225225     *
    226      * @global wpdb $wpdb WordPress database object.
    227      *
    228      * @since 1.0.0
     226     * @since 1.0.0
     227     *
     228     * @global wpdb $wpdb WordPress database object.
    229229     *
    230230     * @param array $args {
     
    275275     * Returns the total number of recorded notices.
    276276     *
    277      * @global wpdb $wpdb WordPress database object.
    278      *
    279      * @since 1.0.0
     277     * @since 1.0.0
     278     *
     279     * @global wpdb $wpdb WordPress database object.
    280280     *
    281281     * @return int
     
    301301     * Returns the active notice that should be displayed on the front end.
    302302     *
    303      * @global wpdb $wpdb WordPress database object.
    304      *
    305      * @since 1.0.0
     303     * @since 1.0.0
     304     *
     305     * @global wpdb $wpdb WordPress database object.
    306306     *
    307307     * @return BP_Messages_Notice
Note: See TracChangeset for help on using the changeset viewer.