mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user