Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 16 years ago

#1823 closed defect (bug) (fixed)

A newly registered user (or Added User) is assigned "inactive" and displays at the bottom of the User List by Role.

Reported by: michaelh's profile MichaelH Owned by: ringmaster's profile ringmaster
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: Administration Keywords: role capabilities bg|has-patch
Focuses: Cc:

Description

A newly registered user (or Added User) is assigned "inactive" and displays at the bottom of the User List by Role of Users.

The user-edit.php shows "Additional Capabilities: inactive" for the new registrant.

Interestingly, only "inactive" users show "Additional Capabilites:" in user-edit.php.

You can not Set the Role for this new user either.

Isn't this really a reflection of the fact there is no way to officially set what capability (or is it role) is assigned new users?

Attachments (1)

upgrade-schema.php.patch (403 bytes) - added by ringmaster 20 years ago.
The default role for new users must be set correctly at install/upgrade.

Download all attachments as: .zip

Change History (7)

#1 @MichaelH
20 years ago

  • Summary changed from A newly registered user (or Added User) is assigned "inactive" and displays at the bottom of the User List by Role of Users. to A newly registered user (or Added User) is assigned "inactive" and displays at the bottom of the User List by Role.

#2 @MichaelH
20 years ago

  • Keywords role capabilities added

#3 @MichaelH
20 years ago

When a new user is added here's what wp_usermeta has:

wpbz_capabilities:  a:1:{s:8:"inactive";b:1;}
wpbz_user_level:  0

Then when you Set the Role to make Editor;

wpbz_capabilities:  a:2:{s:8:"inactive";b:1;s:6:"editor";b:1;}
wpbz_user_level:  7

@ringmaster
20 years ago

The default role for new users must be set correctly at install/upgrade.

#4 @ringmaster
20 years ago

  • Keywords bg|has-patch added
  • Owner changed from anonymous to ringmaster

#5 @MichaelH
20 years ago

This worked for me. Thanks.

Tested both an upgrade.php and an install.php

#6 @ryan
20 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3105]) Assign a valid default role. Props ringmaster. fixes #1823

Note: See TracTickets for help on using tickets.