From 0b92287bd424a64317ae419a9827b672917a6d27 Mon Sep 17 00:00:00 2001 From: Legradi Szabolcs Date: Thu, 1 Aug 2013 16:43:00 +0200 Subject: [PATCH] Enable states in Hungary The states file for Hungary is in the project for some time now, this commit enables the use of it. --- includes/class-wc-countries.php | 1 - includes/class-wc-install.php | 7 +++++++ readme.txt | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index 4172f131010..33556cfbc55 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -291,7 +291,6 @@ class WC_Countries { 'DK' => array(), 'FI' => array(), 'FR' => array(), - 'HU' => array(), 'IS' => array(), 'IL' => array(), 'JP' => array(), diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index af7c2d39a7d..201142930d3 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -157,6 +157,13 @@ class WC_Install { update_option( 'woocommerce_db_version', '2.0.9' ); } + if ( version_compare( $current_db_version, '2.0.14', '<' ) ) { + if ( 'HU' == get_option( 'woocommerce_default_country' ) ) + update_option( 'woocommerce_default_country', 'HU:BU' ); + + update_option( 'woocommerce_db_version', '2.0.14' ); + } + if ( version_compare( $current_db_version, '2.1.0', '<' ) ) { include( 'updates/woocommerce-update-2.1.php' ); update_option( 'woocommerce_db_version', '2.1.0' ); diff --git a/readme.txt b/readme.txt index f614bb6daaf..dc372668be0 100644 --- a/readme.txt +++ b/readme.txt @@ -207,7 +207,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Localization - Japanese translation by Shohei Tanaka. * Localization - Danish translation by Mikael Lyngvig. * Localization - Spanish translation by Luis Giménez. -* Localization - French, Spanish, Romanian, Danish, Korean, Czech, Arabic updates. +* Localization - French, Spanish, Romanian, Danish, Korean, Czech, Arabic, Hungarian updates. = 2.0.13 - 19/07/2013 = * Tweak - Allow users with edit rights to add draft products to cart (and nobody else)