Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Hostname specific wp-config statement
- *
- * @author Mirco Babini <mirkolofio@gmail.com>
- * @uses hostname (): */
- if (!function_exists ('hostname')) {
- function hostname () { return trim (php_uname ("n")); } } /*
- *
- * Place these lines before the first cond. statement in wp-load.php
- */
- $hostname = hostname ();
- // var_dump ($hostname); die;
- if (file_exists (ABSPATH."wp-config-{$hostname}.php")) {
- /** Hostname specific wp-config */
- require_once (ABSPATH."wp-config-{$hostname}.php");
- } else /* if (..) { .. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement