[wp-trac] [WordPress Trac] #50260: Multisite - Getting actual user capabilities with get_role_caps() different with current_user_can()

WordPress Trac noreply at wordpress.org
Thu Aug 3 16:40:00 UTC 2023


#50260: Multisite - Getting actual user capabilities with get_role_caps() different
with current_user_can()
-----------------------------+------------------------------
 Reporter:  Mahesh901122     |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  5.4.1
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |     Focuses:  multisite
-----------------------------+------------------------------

Comment (by vgstudios):

 Hi. Sorry for bothering. Is it advised to workaround this problem with
 plugins or by other means for now (e.g. because existing code relays on
 the wrong behavior), or is it reasonable to hope for a fix in the future?

 I am asking because this unexpected / undocumented behavior causes
 problems in other plugins, e.g.:
 https://github.com/elementor/elementor/issues/23302

 With kind regards
 Dominik

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


More information about the wp-trac mailing list