Merge pull request #385 from thenbrent/master

Fixing "Automatically add pages" bug
This commit is contained in:
Mike Jolley 2011-12-19 02:13:11 -08:00
commit 499643967e
1 changed files with 1 additions and 1 deletions

View File

@ -980,7 +980,7 @@ function woocommerce_settings() {
// Add pages button
if (isset($_GET['install_woocommerce_pages']) && $_GET['install_woocommerce_pages']) :
require_once( 'woocommerce-admin-install.php' );
woocommerce_create_pages();
update_option('skip_install_woocommerce_pages', 1);
$install_complete = true;