Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/08/2012 10:24:15 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Introduce bbp_user_has_profile() function in /users/capabilities.php.
  • Use this function to suppress links to a profile of a user with no role on the site.
  • Replaces some logic in bbp_parse_query() for setting user profile query variables.
  • See #1939.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/replies/template-tags.php

    r4331 r4363  
    10401040
    10411041            // Add links if not anonymous
    1042             if ( empty( $anonymous ) ) {
     1042            if ( empty( $anonymous ) && bbp_user_has_profile( bbp_get_reply_author_id( $reply_id ) ) ) {
    10431043                foreach ( $author_links as $link => $link_text ) {
    10441044                    $link_class = ' class="bbp-author-' . $link . '"';
Note: See TracChangeset for help on using the changeset viewer.