[wp-trac] [WordPress Trac] #28374: Calling WP_User::add_cap does not flush capabilities

WordPress Trac noreply at wordpress.org
Tue Dec 7 11:51:56 UTC 2021


#28374: Calling WP_User::add_cap does not flush capabilities
------------------------------------+--------------------------
 Reporter:  rmccue                  |       Owner:  rachelbaker
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  4.2
Component:  Users                   |     Version:  2.0
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+--------------------------

Comment (by pikamander2):

 I just tried @lgladdy's suggested workaround (changing their role to
 something else and back) on another affected account and that also fixed
 it, so it definitely seems like the original bug is still around.

 For reference, I'm on WordPress 5.8.2.

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


More information about the wp-trac mailing list