Skip to:
Content

bbPress.org

Changeset 4736


Ignore:
Timestamp:
01/29/2013 07:30:27 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Reverse single/double quote usage in bbp_mention_filter(); also use sprintf() to place variable data. See #2185.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/functions.php

    r4672 r4736  
    328328
    329329        // Replace name in content
    330         $content = preg_replace( '/(@' . $username . '\b)/', "<a href='" . bbp_get_user_profile_url( $user->ID ) . "' rel='nofollow' class='bbp-mention-link {$username}'>@{$username}</a>", $content );
     330        $content = preg_replace( '/(@' . $username . '\b)/', sprintf( '<a href="%1$s" rel="nofollow" class="bbp-mention-link">@%2$s</a>', bbp_get_user_profile_url( $user->ID ), $username ), $content );
    331331    }
    332332
Note: See TracChangeset for help on using the changeset viewer.