Flush after update. Closes #2406.
This commit is contained in:
parent
b67492fe68
commit
6a53728ee6
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue