Skip to content

Commit

Permalink
Merge pull request roots#943 from roots/rel_url
Browse files Browse the repository at this point in the history
Fix relative url changes
  • Loading branch information
Foxaii committed Dec 14, 2013
2 parents 1e26ad1 + 51b246e commit 72fa70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/relative-urls.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function roots_root_relative_url($input) {

if (!isset($matches[1]) || !isset($matches[2])) {
return $input;
} elseif (($matches[1] === $server_name) || $matches[1] === $server_name . ':' . $_SERVER['SERVER_PORT']) {
} elseif (($matches[1] === $_SERVER['SERVER_NAME']) || $matches[1] === $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT']) {
return wp_make_link_relative($input);
} else {
return $input;
Expand Down

0 comments on commit 72fa70a

Please sign in to comment.