Skip to:
Content

BuddyPress.org

Changeset 13491


Ignore:
Timestamp:
05/27/2023 10:43:13 AM (11 months ago)
Author:
imath
Message:

Improve inline doc, informing about global variable usage in functions

Props viralsampat

Fixes #8890

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-embeds.php

    r13471 r13491  
    8686 *
    8787 * @since 2.6.0
     88 *
     89 * @global BP_Activity_Template $activities_template The Activity template loop.
    8890 *
    8991 * @param  int $activity_id The activity ID.
  • trunk/src/bp-activity/bp-activity-filters.php

    r13433 r13491  
    402402 * @since 2.6.0 Added $args parameter.
    403403 *
     404 * @global BP_Activity_Template $activities_template The Activity template loop.
     405 *
    404406 * @param string $text The original activity entry text.
    405407 * @param array  $args {
  • trunk/src/bp-activity/bp-activity-template.php

    r13490 r13491  
    414414     * @since 11.0.0 Adds the `offset_lower` query arg to avoid last displayed activity to be duplicated.
    415415     *
     416     * @global BP_Activity_Template $activities_template The Activity template loop.
     417     *
    416418     * @return string $link
    417419     */
     
    27662768     * @since 1.2.0
    27672769     *
     2770     * @global BP_Activity_Template $activities_template The Activity template loop.
    27682771     *
    27692772     * @return string $link The activity thread permalink.
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r13394 r13491  
    409409 * @since 1.0.0
    410410 *
     411 * @global string $message The feedback message to show.
     412 * @global string $type    The type of feedback message to show.
     413 *
    411414 * @param int|null $group_id Group ID to manage.
    412415 */
     
    476479 * @since 1.0.0
    477480 *
     481 * @global string $message The feedback message to show.
     482 * @global string $type    The type of feedback message to show.
     483 *
    478484 * @param int $group_id ID of the group to delete.
    479485 */
     
    554560 *
    555561 * @since 1.0.0
     562 *
     563 * @global wpdb   $wpdb    WordPress database object.
     564 * @global string $message The feedback message to show.
     565 * @global array  $groups  The list of matching xProfile field groups.
    556566 *
    557567 * @param int      $group_id ID of the group.
     
    10081018 * @since 8.0.0 Adds the `$is_signup` parameter.
    10091019 *
     1020 * @global BP_XProfile_Field $field The Admin field.
     1021 *
    10101022 * @param BP_XProfile_Field   $admin_field Admin field.
    10111023 * @param object $admin_group Admin group object.
  • trunk/src/bp-xprofile/bp-xprofile-cache.php

    r13394 r13491  
    5050 *
    5151 * @since 2.0.0
     52 *
     53 * @global wpdb $wpdb WordPress database object.
    5254 *
    5355 * @param array $object_ids Multi-dimensional array of object_ids, keyed by
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php

    r13484 r13491  
    156156     *
    157157     * @since 8.0.0
    158      * 
     158     *
    159159     * @global wpdb $wpdb WordPress database object.
    160160     *
Note: See TracChangeset for help on using the changeset viewer.