[wp-trac] [WordPress Trac] #14419: Make get_editable_user_ids() use the role system instead of user level

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 26 10:11:30 UTC 2010


#14419: Make get_editable_user_ids() use the role system instead of user level
--------------------------+-------------------------------------------------
 Reporter:  garyc40       |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:  3.0            
 Severity:  major         |    Keywords:  has-patch      
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14419>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list