Flush after update. Closes #2406.

This commit is contained in:
Mike Jolley 2013-02-11 14:27:45 +00:00
parent b67492fe68
commit 6a53728ee6
1 changed files with 3 additions and 0 deletions

View File

@ -311,6 +311,9 @@ function update_woocommerce() {
do_update_woocommerce();
update_option( 'woocommerce_updated', 1 );
update_option( 'woocommerce_needs_update', 0 );
// Flush rules after update
flush_rewrite_rules( false );
}
}