Permalink
Browse files

Merge pull request #1 from tnorthcutt/master

Improve detection of local site - thanks tnorthcutt!
  • Loading branch information...
2 parents 5cac587 + c9f96c5 commit c00e9753858fea88873bc8c175e851cce9b8d971 @michael-martin committed May 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pbd-livejs.php
View
@@ -14,7 +14,7 @@
* - http://twitter.com/mrtnkl
*/
function pbd_livejs_script() {
- if(is_user_logged_in() && ($_SERVER["SERVER_NAME"] == 'localhost' || $_SERVER["SERVER_NAME"] == '127.0.0.1')) {
+ if(is_user_logged_in() && ($_SERVER["SERVER_NAME"] == 'localhost' || $_SERVER["SERVER_NAME"] == '127.0.0.1' || $_SERVER["SERVER_ADDR"] == '127.0.0.1')) {
echo '<script type="text/javascript" src="'. plugins_url('js/live.js#css,js', __FILE__) .'"></script>';
}
}

0 comments on commit c00e975

Please sign in to comment.