mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-08-31 12:36:57 +08:00
parent
3b95ebf59d
commit
149f4058fb
2 changed files with 15 additions and 11 deletions
|
@ -124,7 +124,9 @@ class StaticHtmlOutput_UrlRequest
|
|||
public function extractAllUrls($baseUrl)
|
||||
{
|
||||
$allUrls = array();
|
||||
|
||||
|
||||
|
||||
// TODO: will this follow urls for JS/CSS easily by adjusting?
|
||||
if ($this->isHtml() && preg_match_all('/' . str_replace('/', '\/', $baseUrl) . '[^"\'#\? ]+/i', $this->_response['body'], $matches))
|
||||
{
|
||||
$allUrls = array_unique($matches[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue