Upgrade lost password page Closes #2202.
This commit is contained in:
parent
a7ca2c8717
commit
349308ccdb
|
@ -176,6 +176,9 @@ update_option( 'woocommerce_local_tax_rates_backup', $local_tax_rates );
|
|||
delete_option( 'woocommerce_tax_rates' );
|
||||
delete_option( 'woocommerce_local_tax_rates' );
|
||||
|
||||
// Create lost password page
|
||||
woocommerce_create_page( esc_sql( _x( 'lost-password', 'page_slug', 'woocommerce' ) ), 'woocommerce_lost_password_page_id', __( 'Lost Password', 'woocommerce' ), '[woocommerce_lost_password]', woocommerce_get_page_id( 'myaccount' ) );
|
||||
|
||||
|
||||
// Now its time for the massive update to line items - move them to the new DB tables
|
||||
// Reverse with UPDATE `wpwc_postmeta` SET meta_key = '_order_items' WHERE meta_key = '_order_items_old'
|
||||
|
|
|
@ -21,6 +21,9 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
function do_update_woocommerce() {
|
||||
global $woocommerce;
|
||||
|
||||
// Include installer so we have page creation functions
|
||||
include_once( 'woocommerce-admin-install.php' );
|
||||
|
||||
// Do updates
|
||||
$current_db_version = get_option( 'woocommerce_db_version' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue