Improved self determination. Props PeteMall. see #14435

git-svn-id: http://svn.automattic.com/wordpress/trunk@15866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-10-20 14:08:29 +00:00
parent eb3d1dd7c8
commit c087c70a25
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@
* @name $self
* @var string
*/
$self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
$self = preg_replace('|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF']);
$self = preg_replace('|^.*/wp-admin/|i', '', $self);
$self = preg_replace('|^.*/plugins/|i', '', $self);
$self = preg_replace('|^.*/mu-plugins/|i', '', $self);