Skip to:
Content

bbPress.org

Changeset 6841


Ignore:
Timestamp:
07/29/2018 05:57:08 PM (6 years ago)
Author:
johnjamesjacoby
Message:

Users: use returning variant of anonymous data functions (instead of echo'ing)

This change makes sure that anonymous user data (name & url) is not prematurely put out to the page when a topic or reply was authored by an anonymous user.

(See r6741 where email was similarly corrected.)

Props wpdennis. Fixes #3212.

File:
1 edited

Legend:

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

    r6778 r6841  
    847847        // Not an edit, so rely on current user cookie data
    848848        } else {
    849             $retval = bbp_current_anonymous_user_data( 'name' );
     849            $retval = bbp_get_current_anonymous_user_data( 'name' );
    850850        }
    851851
     
    947947        // Not an edit, so rely on current user cookie data
    948948        } else {
    949             $retval = bbp_current_anonymous_user_data( 'url' );
     949            $retval = bbp_get_current_anonymous_user_data( 'url' );
    950950        }
    951951
Note: See TracChangeset for help on using the changeset viewer.