[wp-trac] [WordPress Trac] #42315: User with no role on a site on a multisite network sees inaccessible links
WordPress Trac
noreply at wordpress.org
Wed Aug 8 12:44:33 UTC 2018
#42315: User with no role on a site on a multisite network sees inaccessible links
--------------------------+----------------------------------------
Reporter: johnbillion | Owner: johnbillion
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.0
Component: Users | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: administration, multisite
--------------------------+----------------------------------------
Comment (by shariqkhan2012):
It looks like the elseif clause added will not be hit in any condition.
For eg. the check at line 225
For it to be hit condition
{{{
current_user_can( 'read' )
}}}
should be true along with the multisite check.
But if the condition were true then the code execution would have
satisfied the same condition at line 223.
Same goes for the check at line 266
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42315#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list