Enable states in Hungary

The states file for Hungary is in the project for some time now, this
commit enables the use of it.
This commit is contained in:
Legradi Szabolcs 2013-08-01 16:43:00 +02:00
parent d302251d3f
commit 0b92287bd4
3 changed files with 8 additions and 2 deletions

View File

@ -291,7 +291,6 @@ class WC_Countries {
'DK' => array(),
'FI' => array(),
'FR' => array(),
'HU' => array(),
'IS' => array(),
'IL' => array(),
'JP' => array(),

View File

@ -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' );

View File

@ -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)