Skip to content

Instantly share code, notes, and snippets.

@pkrumins
Created February 11, 2014 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkrumins/8944170 to your computer and use it in GitHub Desktop.
Save pkrumins/8944170 to your computer and use it in GitHub Desktop.
<?php
$browserlingTunnelPort = 59374;
$browserlingTunnelUrl = "http://tunnel.browserling.com:" . $browserlingTunnelPort . "/WordPress/TestingWp/";
if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1') {
define('WP_SITEURL', $browserlingTunnelUrl);
define('WP_HOME', $browserlingTunnelUrl);
update_option('siteurl', $browserlingTunnelUrl);
update_option('home', $browserlingTunnelUrl);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment