Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2013 09:46:41 PM (12 years ago)
Author:
netweb
Message:

Protect topic and reply author link calls from non-existant users. Props jondavidjohn. Fixes #2381

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/users/template.php

    r5156 r5180  
    16541654            // Assemble some link bits
    16551655            $link_title = !empty( $r['link_title'] ) ? ' title="' . $r['link_title'] . '"' : '';
    1656             $author_url = bbp_get_user_profile_url( $user_id );
    16571656            $anonymous  = bbp_is_reply_anonymous( $r['post_id'] );
    16581657
     
    16691668            // Add links if not anonymous
    16701669            if ( empty( $anonymous ) && bbp_user_has_profile( $user_id ) ) {
     1670                $author_url = bbp_get_user_profile_url( $user_id );
    16711671                foreach ( $author_links as $link_text ) {
    16721672                    $author_link[] = sprintf( '<a href="%1$s"%2$s>%3$s</a>', $author_url, $link_title, $link_text );
Note: See TracChangeset for help on using the changeset viewer.