[wp-trac] [WordPress Trac] #19747: Roles add_cap should call update_user_level_from_caps()

WordPress Trac noreply at wordpress.org
Fri Feb 21 21:46:36 UTC 2014


#19747: Roles add_cap should call update_user_level_from_caps()
------------------------------------------------+--------------------------
 Reporter:  lgladdy                             |       Owner:
     Type:  defect (bug)                        |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Role/Capability                     |  Review
 Severity:  normal                              |     Version:  3.3.1
 Keywords:  reporter-feedback needs-unit-tests  |  Resolution:
                                                |     Focuses:
------------------------------------------------+--------------------------

Comment (by lgladdy):

 Hey Nacin,

 It's been a little while since i opened this, so i'm trying to recall our
 use case, I think it was basically that when you add a deprecated level_x
 capability to a role, any users who already have that role aren't updated
 with that capability, because update_user_level_from_caps() isn't called
 as part of the add_cap.

 Looking back, this probably isn't too much of an issue depending on the
 state of #16841 - I've not needed to do anything with caps in recent
 releases, but this was back in 3.3 so it may well be something that's
 changed since then!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19747#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list