Url with custom port not supported (fix included)
-
We have a theme with basepress running as some kind of intranet on a custom port (88). With this custom port basepress is not able to recognize if it’s on the homepage or not, because the custom port is not considered. If you change the line with “$current_url = ….” “is_home_page” method in class-basepress-variable.php to:
$current_url = trailingslashit( $_SERVER[‘SERVER_NAME’] . ( !in_array( $_SERVER[‘SERVER_PORT’], [’80’, ‘443’] ) ? “:{$_SERVER[‘SERVER_PORT’]}” : null ) . $_SERVER[‘REQUEST_URI’] ); // phpcs:ignore
….it works properly.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Url with custom port not supported (fix included)’ is closed to new replies.