Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/sitepres.../inc/hacks
File: vars-php-multisite.php
<?php
[0] Fix | Delete
global $PHP_SELF;
[1] Fix | Delete
if ( is_admin() ) {
[2] Fix | Delete
// wp-admin pages are checked more carefully
[3] Fix | Delete
if ( is_network_admin() )
[4] Fix | Delete
preg_match('#/wp-admin/network/?(.*?)$#i', $PHP_SELF, $self_matches);
[5] Fix | Delete
elseif ( is_user_admin() )
[6] Fix | Delete
preg_match('#/wp-admin/user/?(.*?)$#i', $PHP_SELF, $self_matches);
[7] Fix | Delete
else
[8] Fix | Delete
preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches);
[9] Fix | Delete
$pagenow = $self_matches[1];
[10] Fix | Delete
$pagenow = trim($pagenow, '/');
[11] Fix | Delete
$pagenow = preg_replace('#\?.*?$#', '', $pagenow);
[12] Fix | Delete
if ( '' === $pagenow || 'index' === $pagenow || 'index.php' === $pagenow ) {
[13] Fix | Delete
$pagenow = 'index.php';
[14] Fix | Delete
} else {
[15] Fix | Delete
preg_match('#(.*?)(/|$)#', $pagenow, $self_matches);
[16] Fix | Delete
$pagenow = strtolower($self_matches[1]);
[17] Fix | Delete
if ( '.php' !== substr($pagenow, -4, 4) )
[18] Fix | Delete
$pagenow .= '.php'; // for Options +Multiviews: /wp-admin/themes/index.php (themes.php is queried)
[19] Fix | Delete
}
[20] Fix | Delete
} else {
[21] Fix | Delete
if ( preg_match('#([^/]+\.php)([?/].*?)?$#i', $PHP_SELF, $self_matches) )
[22] Fix | Delete
$pagenow = strtolower($self_matches[1]);
[23] Fix | Delete
else
[24] Fix | Delete
$pagenow = 'index.php';
[25] Fix | Delete
}
[26] Fix | Delete
unset($self_matches);
[27] Fix | Delete
[28] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function