WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 8 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 Owned by: 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 12 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
12 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
12 years ago

  • Keywords role capabilities added

#3 @MichaelH
12 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
12 years ago

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

#4 @ringmaster
12 years ago

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

#5 @MichaelH
12 years ago

This worked for me. Thanks.

Tested both an upgrade.php and an install.php

#6 @ryan
12 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.