mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
First pass of user admin. Network admin and screen cleanups. see #14696
git-svn-id: https://develop.svn.wordpress.org/trunk@15746 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -15,7 +15,12 @@
|
||||
// On which page are we ?
|
||||
if ( is_admin() ) {
|
||||
// wp-admin pages are checked more carefully
|
||||
preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches);
|
||||
if ( is_network_admin() )
|
||||
preg_match('#/wp-admin/network/?(.*?)$#i', $PHP_SELF, $self_matches);
|
||||
elseif ( is_user_admin() )
|
||||
preg_match('#/wp-admin/user/?(.*?)$#i', $PHP_SELF, $self_matches);
|
||||
else
|
||||
preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches);
|
||||
$pagenow = $self_matches[1];
|
||||
$pagenow = trim($pagenow, '/');
|
||||
$pagenow = preg_replace('#\?.*?$#', '', $pagenow);
|
||||
|
||||
Reference in New Issue
Block a user