[Bb-trac] Re: [bbPress] #922: bbPress is not inserting display
names during registration
bbPress
bb-trac at lists.bbpress.org
Mon Aug 11 09:39:20 GMT 2008
#922: bbPress is not inserting display names during registration
-------------------------+--------------------------------------------------
Reporter: _ck_ | Owner:
Type: defect | Status: new
Priority: highest | Milestone: 1.0-beta & XML-RPC
Component: integration | Version: 0.9.0.2
Severity: critical | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by _ck_):
Mini-plugin to repair user table by copying user_login to display_name if
display_name is blank:
{{{
function fix_anonymous() {global $bbdb;
$bbdb->query("UPDATE $bbdb->users SET display_name=user_login WHERE
display_name='' ");
} add_action('bb_init','fix_anonymous');
}}}
However this is a horrendous waste of database space.
It's indeed a bug on the WordPress side that when the display_name is
empty to display "anonymous" regardless if there is a valid user id # and
user_login. It's meant to deal with anonymous commenters that have no
account but it fails to anticipate a registered user with no display name.
I am also filing a WordPress ticket on this.
--
Ticket URL: <http://trac.bbpress.org/ticket/922#comment:2>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list