Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix PHPCS warnings
  • Loading branch information
alecgeatches committed Aug 1, 2022
commit 6b8cc4a8f8e19539380ea23af6de1a6cc09d6fbe
8 changes: 4 additions & 4 deletions admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
* @return bool
*/
function is_decoupled() {
$frontend_url = wp_parse_url( home_url(), PHP_URL_HOST );
$frontend_url = wp_parse_url( home_url(), PHP_URL_HOST );
$frontend_port = wp_parse_url( home_url(), PHP_URL_PORT );
$frontend = $frontend_url . ( $frontend_port ? ':' . $frontend_port : '' );
$frontend = $frontend_url . ( $frontend_port ? ':' . $frontend_port : '' );

$backend_url = wp_parse_url( site_url(), PHP_URL_HOST );
$backend_url = wp_parse_url( site_url(), PHP_URL_HOST );
$backend_port = wp_parse_url( site_url(), PHP_URL_PORT );
$backend = $backend_url . ( $backend_port ? ':' . $backend_port : '' );
$backend = $backend_url . ( $backend_port ? ':' . $backend_port : '' );

return $frontend !== $backend;
}
Expand Down