[wp-trac] [WordPress Trac] #45990: Bug in function current_user_can prevents admin to access to Dashboard
WordPress Trac
noreply at wordpress.org
Tue Feb 26 14:22:22 UTC 2019
#45990: Bug in function current_user_can prevents admin to access to Dashboard
------------------------------------+------------------------------
Reporter: DotMG | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version:
Severity: major | Resolution: invalid
Keywords: | Focuses:
------------------------------------+------------------------------
Changes (by DotMG):
* status: new => closed
* resolution: => invalid
Comment:
After a long digging, the issue is caused by another software that has set
the global variable $current_user. So, it's not a Wordpress bug. It's a
global variable name collision.
If there's an enhancement that can be made, that would be to rename global
variable by adding a prefix like WORDPRESS_GLOBAL_
And maybe (or surley) it's not worth it...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45990#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list