Skip to:
Content

bbPress.org

Changeset 6565


Ignore:
Timestamp:
06/16/2017 05:26:24 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Authors: Use bbp_get_fallback_display_name() instead of "Anonymous".

This change uses the new function introduced in r6562 to allow the fallback display name to be filtered, and passes the relative topic or reply ID in for additional context.

Location:
trunk/src/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/template.php

    r6553 r6565  
    11941194        }
    11951195
    1196         // If nothing could be found anywhere, use Anonymous
     1196        // Fallback if nothing could be found
    11971197        if ( empty( $author_name ) ) {
    1198             $author_name = __( 'Anonymous', 'bbpress' );
     1198            $author_name = bbp_get_fallback_display_name( $reply_id );
    11991199        }
    12001200
  • trunk/src/includes/topics/template.php

    r6551 r6565  
    15011501        }
    15021502
    1503         // If nothing could be found anywhere, use Anonymous
     1503        // Fallback if nothing could be found
    15041504        if ( empty( $author_name ) ) {
    1505             $author_name = __( 'Anonymous', 'bbpress' );
     1505            $author_name = bbp_get_fallback_display_name( $topic_id );
    15061506        }
    15071507
Note: See TracChangeset for help on using the changeset viewer.