Created
August 25, 2015 01:21
-
-
Save avioli/0d9b8ca478a9bc90c6aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WP_HOME env should be sans trailing slash | |
define( 'WP_HOME', 'http://localhost:8080' ); | |
define( 'WP_SITEURL', WP_HOME ); | |
ob_start( function( $buf = '' ) { | |
return str_replace( 'http://previous.domain.com:PORT', WP_HOME, $buf ); | |
}); | |
// WordPress calls wp_ob_end_flush_all() when shutting down. In wp-includes/functions.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment