Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/11/2021 05:26:17 PM (2 years ago)
Author:
espellcaste
Message:

Making PHPDoc Improvements to the BP Members (component) files.

Also, adding several minor PHP changes.

See #8553

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-notifications.php

    r12933 r13105  
    129129        return;
    130130    }
    131     foreach ( $invites as $invite) {
     131
     132    foreach ( $invites as $invite ) {
    132133        // Include the id of the "accepted" invitation.
    133134        if ( $invite->inviter_id === $inviter_id ) {
     
    137138            $secondary_item_id = 0;
    138139        }
    139         $res = bp_notifications_add_notification( array(
     140
     141        bp_notifications_add_notification( array(
    140142            'user_id'           => $invite->inviter_id,
    141143            'item_id'           => $new_user->ID,
     
    153155 * Mark accepted invitation notifications as read when user visits new user profile.
    154156 *
    155  *
    156157 * @since 8.0.0
    157158 */
     
    164165    BP_Notifications_Notification::update(
    165166        array(
    166             'is_new'  => false
     167            'is_new' => false,
    167168        ),
    168169        array(
     
    226227        </tbody>
    227228    </table>
    228 
    229229<?php
    230230}
Note: See TracChangeset for help on using the changeset viewer.