Fix default columns isset check.

This commit is contained in:
Tiago Noronha 2018-01-02 19:27:28 +00:00
parent de71c92fa0
commit ece1963e66
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ function wc_reset_product_grid_settings() {
delete_option( 'woocommerce_catalog_rows' );
}
if ( isset( $theme_support['product_grid']['default_rows'] ) ) {
if ( isset( $theme_support['product_grid']['default_columns'] ) ) {
update_option( 'woocommerce_catalog_columns', absint( $theme_support['product_grid']['default_columns'] ) );
} else {
delete_option( 'woocommerce_catalog_columns' );