WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#5672 closed defect (bug) (wontfix)

"Page Author" list excludes users with custom roles

Reported by: sudrien Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3.2
Component: Administration Keywords:
Focuses: Cc:

Description

Scenario: Created new role with Schneider's plugin, restricting new role to only making & editing pages. However, users in this new role were not on the "Page Author" list, so pages could not be transfered to their ownership.

Causes:

  1. wp_user_level was not being set in $wpdb->usermeta when these users are created
  2. get_editable_user_ids looks for the value in #1 when creating the authors list.

changing

$level_key = $wpdb->prefix . 'user_level';

to

$level_key = $wpdb->prefix . 'capabilities';

showed all users, but doesn't respect levels.

Also, this doesn't pay any heed to page vs. post permissions.

Change History (2)

comment:1 lloydbudd6 years ago

  • Milestone changed from 2.3.3 to 2.5

comment:2 Denis-de-Bernardy5 years ago

  • Milestone 2.9 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

has rotten for long enough

Note: See TracTickets for help on using tickets.