Delete page transient after creating pages

Closes #9962
This commit is contained in:
Mike Jolley 2016-01-05 15:19:45 +00:00
parent ade2b04ab3
commit ebba366433
1 changed files with 2 additions and 0 deletions

View File

@ -254,6 +254,8 @@ class WC_Install {
foreach ( $pages as $key => $page ) {
wc_create_page( esc_sql( $page['name'] ), 'woocommerce_' . $key . '_page_id', $page['title'], $page['content'], ! empty( $page['parent'] ) ? wc_get_page_id( $page['parent'] ) : '' );
}
delete_transient( 'woocommerce_cache_excluded_uris' );
}
/**