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-blogs/bp-blogs-template.php

    r13303 r13395  
    9999 * Rewind the blogs and reset blog index.
    100100 *
    101  * @global BP_Blogs_Template $blogs_template {@link BP_Blogs_Template}
     101 * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    102102 */
    103103function bp_rewind_blogs() {
     
    120120 * @since 10.0.0 Added $date_query parameter
    121121 *
    122  * @global BP_Blogs_Template $blogs_template {@link BP_Blogs_Template}
     122 * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    123123 *
    124124 * @param array|string $args {
     
    203203 * Determine if there are still blogs left in the loop.
    204204 *
    205  * @global object $blogs_template {@link BP_Blogs_Template}
     205 * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    206206 *
    207207 * @return bool Returns true when blogs are found.
     
    216216 * Get the current blog object in the loop.
    217217 *
    218  * @global object $blogs_template {@link BP_Blogs_Template}
     218 * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    219219 *
    220220 * @return object The current blog within the loop.
     
    240240 * @since 2.7.0
    241241 *
    242  * @global object $blogs_template {@link BP_Blogs_Template}
     242 * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    243243 *
    244244 * @return string
     
    281281     * Return the blogs pagination links.
    282282     *
    283      * @global object $blogs_template {@link BP_Blogs_Template}
     283     * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    284284     *
    285285     * @return string HTML pagination links.
     
    593593     * @since 1.7.0
    594594     *
    595      * @global BP_Blogs_Template $blogs_template
     595     * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    596596     *
    597597     * @param array $classes Array of custom classes.
     
    765765     * @since 1.7.0
    766766     *
    767      * @global BP_Blogs_Template
     767     * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    768768     *
    769769     * @return string Post title.
     
    802802     * @since 1.7.0
    803803     *
    804      * @global BP_Blogs_Template
     804     * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    805805     *
    806806     * @return string URL of the blog's latest post.
     
    838838     * @since 1.7.0
    839839     *
    840      * @global BP_Blogs_Template
     840     * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    841841     *
    842842     * @return string Content of the blog's latest post.
     
    877877     * @since 1.7.0
    878878     *
    879      * @global BP_Blogs_Template
     879     * @global BP_Blogs_Template $blogs_template The main blog template loop class.
    880880     *
    881881     * @param string $size Image version to return. 'thumbnail', 'medium',
Note: See TracChangeset for help on using the changeset viewer.