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/users/template-tags.php

    r4352 r4363  
    13921392
    13931393            // Add links if not anonymous
    1394             if ( empty( $anonymous ) ) {
     1394            if ( empty( $anonymous ) && bbp_user_has_profile( $user_id ) ) {
    13951395                foreach ( $author_links as $link_text ) {
    13961396                    $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.