public function fixWpIncludeFolder($url, $path)
    {
        if (strpos($url, $this->wpDirectoryPath)) {
            return $url;
        }

        $wordpressUrl = ['/(wp-includes)/'];
        $multiSiteUrl = [trim($this->wpDirectoryPath, '/').'/wp-includes'];

        return preg_replace($wordpressUrl, $multiSiteUrl, $url, 1);
    }
public function fixWpIncludeFolder($url, $path)
    {
        if (strpos($url, $this->wpDirectoryPath)) {
            return $url;
        }

        $wordpressUrl = ['/(wp-includes)/'];
        $multiSiteUrl = [trim($this->wpDirectoryPath, '/').'/wp-includes'];

        return preg_replace($wordpressUrl, $multiSiteUrl, $url, 1);
    }
public function fixWpIncludeFolder ( $ url , $ path ) { if ( strpos ( $ url , $ this -> wpDirectoryPath ) ) { return $ url ; } $ wordpressUrl = [ '/(wp-includes)/' ] ; $ multiSiteUrl = [ trim ( $ this -> wpDirectoryPath , '/' ) . '/wp-includes' ] ; return preg_replace ( $ wordpressUrl , $ multiSiteUrl , $ url , 1 ) ; }
Add subfolder path to wp-includes path.

@param string $url
@param string $path

@return string
Add subfolder path to wp - includes path .