elementor / elementor/wp2static

support non-standard crawl ports

Open
#511 1 comment 0 reactions 0 assignees View on GitHub
investigate
Dominant language
PHP
Stars
1.5k
Forks
294
PR merge metrics
No merged PRs in 30d

Description

had been earmarked for Advanced Crawling Add-on, but based on following workaroud by @john-shaffer, it may be possible to avoid add-on by adding some logic like John's

ie, reproduce issue and investigate better handling of Site URL/Home's port when they've been set via wp-config.php

```php
// wp-config.php
if ( defined( 'WP_CLI' ) ) {
$_SERVER['HTTP_HOST'] = 'localhost:1234';
}

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.