public function fixNetworkAdminUrlFilter($path = '', $scheme = 'admin')
    {
        if (strpos($path, $this->wpDirectoryPath)) {
            return $path;
        }

        $wordpressUrl = [
            '/(wp-admin)/',
            '/(wp-login\.php)/',
            '/(wp-activate\.php)/',
            '/(wp-signup\.php)/',
        ];

        $multiSiteUrl = [
            $this->wpFolderName.'/wp-admin',
            $this->wpFolderName.'/wp-login.php',
            $this->wpFolderName.'/wp-activate.php',
            $this->wpFolderName.'/wp-signup.php',
        ];

        return preg_replace($wordpressUrl, $multiSiteUrl, $path, 1);
    }
public function fixNetworkAdminUrlFilter($path = '', $scheme = 'admin')
    {
        if (strpos($path, $this->wpDirectoryPath)) {
            return $path;
        }

        $wordpressUrl = [
            '/(wp-admin)/',
            '/(wp-login\.php)/',
            '/(wp-activate\.php)/',
            '/(wp-signup\.php)/',
        ];

        $multiSiteUrl = [
            $this->wpFolderName.'/wp-admin',
            $this->wpFolderName.'/wp-login.php',
            $this->wpFolderName.'/wp-activate.php',
            $this->wpFolderName.'/wp-signup.php',
        ];

        return preg_replace($wordpressUrl, $multiSiteUrl, $path, 1);
    }
public function fixNetworkAdminUrlFilter ( $ path = '' , $ scheme = 'admin' ) { if ( strpos ( $ path , $ this -> wpDirectoryPath ) ) { return $ path ; } $ wordpressUrl = [ '/(wp-admin)/' , '/(wp-login\.php)/' , '/(wp-activate\.php)/' , '/(wp-signup\.php)/' , ] ; $ multiSiteUrl = [ $ this -> wpFolderName . '/wp-admin' , $ this -> wpFolderName . '/wp-login.php' , $ this -> wpFolderName . '/wp-activate.php' , $ this -> wpFolderName . '/wp-signup.php' , ] ; return preg_replace ( $ wordpressUrl , $ multiSiteUrl , $ path , 1 ) ; }
Set the right links in Adminbar.

@param string $path
@param string $scheme

@return string
Set the right links in Adminbar .