Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#2818 closed defect (bug) (worksforme)

"Admin" not a "Post Author" option

Reported by: markjaquith Owned by: markjaquith
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords:
Focuses: Cc:


Reported by Owen Gray on wp-testers

Admin not is shown as an option in the "Post Author" dropdown box on the Write Post page. That dropdown box does not appear when admin is the only user. After an new user is added, only that user's nickname appears in the dropdown box.

I notice that the added user has a "wp_user_level" entry in the wp_usermeta table, but admin does not. If I add such an entry for admin, admin appears as a choice in the dropdown list.

Change History (5)

#1 @markjaquith
12 years ago

  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

I see two problems:

  1. wp_user_level is not set for new users all the time. We need to make sure that this always gets created.
  2. we need to switch this dropdown box to use caps anyway.

Ryan, Owen,

#2 is going to get messy. Without a clean way of getting all users with edit_posts, we're going to use a lot of memory on systems with more than a few users. I suggest that #2 wait until we make the DB schema for roles/caps a little more sane. How are you feeling about #2787? I'll code it.

#2 @matt
11 years ago

  • Milestone changed from 2.1 to 2.2

#3 @johnbillion
11 years ago

Worksforme as of r5036. Close this ticket?

#4 @Bobcat
11 years ago

A workaround is to create a second Administrator account, then use that account to change 'admin' to an Editor, save the changes, then back to Administrator, and save the changes again. That should create the "wp_user_level" entry for admin, and cause it to appear in the dropdown list.

#5 @foolswisdom
11 years ago

  • Milestone 2.2 deleted
  • Resolution set to worksforme
  • Status changed from assigned to closed

Closing as WORKSFORME based on johnbillion's testing on trunk.

Note: See TracTickets for help on using tickets.