Skip to content

Commit

Permalink
Linting Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ObliviousHarmony committed Nov 15, 2023
1 parent 1dc19d7 commit fd6b613
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/network.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function network_step1( $errors = false ) {
}

// Strip standard port from hostname.
$hostname = preg_replace( '/(?::80|:443)$/', '', get_clean_basedomain() );
$hostname = preg_replace( '/(?::80|:443)$/', '', get_clean_basedomain() );

echo '<form method="post">';

Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/network/site-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
$blog_data['domain'] .= ':' . $update_parsed_url['port'];
}

$blog_data['path'] = $update_parsed_url['path'];
$blog_data['path'] = $update_parsed_url['path'];
}

$existing_details = get_site( $id );
Expand Down
8 changes: 4 additions & 4 deletions tools/local-env/default.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ server {
absolute_redirect off;

if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$request_uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}
rewrite /wp-admin$ $scheme://$host$request_uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}

location / {
try_files $uri $uri/ /index.php?$args;
Expand Down

0 comments on commit fd6b613

Please sign in to comment.