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:
parent
c8a077df5c
commit
fa4a6b9cf7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue