Improved self determination. Props PeteMall. see #14435

git-svn-id: https://develop.svn.wordpress.org/trunk@15866 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-10-20 14:08:29 +00:00
parent 18fb594129
commit c9c814ab8c
+2 -1
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);