diff --git a/README.md b/README.md index 2a2d08b..560fd8f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ WordPress build script using [Phing](http://www.phing.info/). - Simple config file and commands to run -*Phing has no dependencies other than PHP, so it will run anywhere PHP does (unlike Apache Ant/Cappicino/Rails/Grunt/Yeoman, etc). It should work right out of the box on most PHP stacks. Some of the advanced options might require additional installations of PHP/PEAR packages* +*Phing has no dependencies other than PHP, so it will run anywhere PHP does (unlike Apache Ant/Cappicino/Rails/Grunt/, etc). It should work right out of the box on most PHP stacks. Some of the advanced options might require additional installations of PHP/PEAR packages* ## Features @@ -15,7 +15,7 @@ WordPress build script using [Phing](http://www.phing.info/). - Creation of a new database (optional) - Downloads and installs WordPress (latest stable or nightly) -- Download and installs plugins and/or themes (http transfer and zip format) +- Download and installs plugins and/or themes (http transfer / zip format) - Appends info to your wp-config automatically - Runs the WP install script (by-passes the 5 minute install) - Custom install parameters (optional via `boot.php`) diff --git a/build.properties b/build.properties index 773d660..ac7ccc4 100644 --- a/build.properties +++ b/build.properties @@ -6,11 +6,11 @@ #Full path directory where you want to install WordPress #Required -build.dir.wp=D:\Sites\Foo17 +build.dir.wp=D:\Sites\Foo18 #The database name you want to create or are using. #Required -build.db.name=foo_17 +build.db.name=foo_18 #Working directory # Leave as is unless you want to work on a different directory than set above (for git, minify, etc) @@ -19,7 +19,7 @@ build.dir.work=${build.dir.wp} #This is your actual working URL based on your own config/hosts file (http://localhost or ..) #If you mess this up it will still install WP but you will have to fix it in the database. #Recommended -build.dir.actual=http://dev.local/Foo17 +build.dir.actual=http://dev.local/Foo18 #Database info #This will also be entered into the wp-config.php. diff --git a/build.xml b/build.xml index 9988293..c6191d3 100644 --- a/build.xml +++ b/build.xml @@ -382,6 +382,10 @@ $result = wp_install( '${build.wp.title}', '${build.wp.user}', '${build.wp.email}', $public, '', '${build.wp.password}' ); //we need to update the db version for some reason + + require('${build.dir.wp}/wp-includes/version.php'); + update_option( 'db_version', $wp_db_version ); + //edit this script, do not edit this class directly require('${project.basedir}/boot.php');