johnbillion / user-switching

WordPress plugin that provides instant switching between user accounts.
https://wordpress.org/plugins/user-switching/
GNU General Public License v2.0
187 stars 49 forks source link

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

Open MadtownLems opened 1 month ago

MadtownLems commented 1 month ago

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!

johnbillion commented 1 month ago

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.