Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 04:26:18 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: The modified code addresses all Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword and Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction issues specific to the foreach and function examples.

See #7228

File:
1 edited

Legend:

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

    r13636 r13878  
    306306        if ( ! empty( $usernames ) ) {
    307307                // Replace @mention text with userlinks.
    308                 foreach( (array) $usernames as $user_id => $username ) {
     308                foreach ( (array) $usernames as $user_id => $username ) {
    309309                        $activity->content = preg_replace( '/(@' . $username . '\b)/', "<a class='bp-suggestions-mention' href='" . bp_members_get_user_url( $user_id ) . "' rel='nofollow'>@$username</a>", $activity->content );
    310310                }
    … …  
    344344
    345345        // Send @mentions and setup BP notifications.
    346         foreach( (array) $usernames as $user_id => $username ) {
     346        foreach ( (array) $usernames as $user_id => $username ) {
    347347
    348348                /**
Note: See TracChangeset for help on using the changeset viewer.