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:
parent
eb3d1dd7c8
commit
c087c70a25
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue