Fixing "Call to undefined function woocommerce_create_pages()" fatal error when attempting to automatically add pages. This bug appears to have spawned from the removal of the `include_once( admin-install.php );` call in in the file formerly known as `admin-init.php`. See commit SHA: 34032965a8 for details.

This commit is contained in:
Brent Shepherd 2011-12-19 13:17:02 +10:00
parent c8a077df5c
commit fa4a6b9cf7
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;