[wp-hackers] /author/ is still broken.

Peter Westwood peter.westwood at ftwr.co.uk
Wed Feb 1 22:36:55 GMT 2006

Hash: SHA1

David House wrote:
> On 01/02/06, Ryan Boren <ryan at boren.nu> wrote:
>> Works for me.
> If you've been creating users with Firefox this could cause the
> problem. Because user_login is a disabled field on user-edit.php,
> Firefox choses not to send the value of the field when you hit submit.
> This means that user_nicename doesn't get properly filled from the
> login; each user's user_nicename is something like '10' or '4', so the
> correct URL for them ends up being something like /author/10, not what
> you expect.
> I've written a patch which just displays the user login as text on
> user-edit.php (this makes more sense as you can't edit it anyway), and
> puts the user login in a hidden field. This should fix it when
> creating new users. For now the easiest way to fix this bug is to go
> through the database and set the user_nicenames to something more
> sane.

This looks sane.

I have created all my users with firefox and one did work however.

Looking at the query for my admin user that didn't work the . in the
username is being stripped out so:


Causes the following query:

SELECT ID FROM trunk_users WHERE user_nicename='peterwestwood';

Maybe we need to ban the . or fix the code stripping it?

- --
Peter Westwood
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the wp-hackers mailing list