Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14419 closed defect (bug) (duplicate)

Make get_editable_user_ids() use the role system instead of user level

Reported by: garyc40's profile garyc40 Owned by:
Milestone: Priority: normal
Severity: major Version: 3.0
Component: Role/Capability Keywords: has-patch
Focuses: Cc:


The function get_editable_user_ids() is used to populate the Author list in Post Edit admin page. Currently, it uses user levels to determine which users have permission to edit posts.

This is a deprecated approach. Role management plugins have no way to intercept this function, so even though, say, subscribers are assigned enough capabilities to edit / publish posts, these users are not listed in the Author list. This is also troublesome for custom post types that allow subscribers or custom roles to post and edit contents.

Attached is a patch to fix this and make get_editable_user_ids() use the role system instead.

Attachments (1)

fix-get-editable-user-ids.patch (1.9 KB) - added by garyc40 14 years ago.

Download all attachments as: .zip

Change History (4)

#1 @garyc40
14 years ago

  • Component changed from Post Types to Role/Capability

#2 @BandB
14 years ago

  • Cc BandB added

#3 @scribu
14 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

get_editable_user_ids() is deprecated in trunk so fixing it is not necessary anymore.

See #14572.

Note: See TracTickets for help on using tickets.