Created
March 21, 2013 14:24
-
-
Save mattbanks/5213396 to your computer and use it in GitHub Desktop.
Run wp_install() as an output script in an Alfred 2 Workflow
This file contains hidden or 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
| <?php | |
| $site = $_GET['q']; | |
| $dir = "/Users/MYUSERNAME/Sites/$site"; | |
| $siteUrl = "http://sites.dev/$site"; | |
| $username = 'MYUSERNAME'; | |
| $email = 'MYEMAIL'; | |
| $password = 'MYPASSWORD'; | |
| define( 'WP_SITEURL', $siteUrl ); | |
| define( 'WP_INSTALLING', true ); | |
| require_once ( $dir . '/wp-load.php' ); | |
| require_once ( $dir . '/wp-admin/includes/upgrade.php' ); | |
| require_once ( $dir . '/wp-includes/wp-db.php' ); | |
| $result = wp_install( $site, $username, $email, true, null, $password ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment