user-switching icon indicating copy to clipboard operation
user-switching copied to clipboard

MultiSite: Add link to Switch Back when Network Admin dashboard is accessed by a network admin who is switched to a non-admin

Open MadtownLems opened this issue 1 year ago • 1 comments

You recently completed https://github.com/johnbillion/user-switching/issues/116 - which is awesome and works great. Thanks!

This includes a Switch Back link on pages such as: wp-admin/network/sites.php

However, the switch back link is not present on the bare /wp-admin/network/

Is it possible to add it there also, or is there a technical limitation that prevents it? Thanks!

MadtownLems avatar Jul 25 '24 18:07 MadtownLems

Probably because it uses a vanilla wp_die() call rather than via the admin_page_access_denied hook. I'll take a look at some point.

johnbillion avatar Jul 25 '24 19:07 johnbillion