Skip to content

Commit

Permalink
Load settings/settings-save.php on custom settings pages too. Closes w…
Browse files Browse the repository at this point in the history
  • Loading branch information
coenjacobs committed May 30, 2012
1 parent caf6973 commit abaa3ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/woocommerce-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function woocommerce_settings() {

$old_base_color = get_option('woocommerce_frontend_css_base_color');
$old_base_color = get_option('woocommerce_frontend_css_base_color');

include_once( 'settings/settings-save.php' );

switch ( $current_tab ) {
case "general" :
Expand All @@ -46,7 +48,6 @@ function woocommerce_settings() {
case "shipping" :
case "tax" :
case "email" :
include_once( 'settings/settings-save.php' );
woocommerce_update_options( $woocommerce_settings[$current_tab] );
break;
}
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Tweak - Change debug page to status page to make it more noticeable.
* Tweak - Broken up settings pages to ease development
* Tweak - Improved re-ordering prouducts performance
* Tweak - Load settings/settings-save.php on custom settings pages too
* Fix - Strange error where detecting the page (is_page etc) would break the canonical redirect in some instances when hooked into 'wp'. Used the later get_header hook instead.
* Fix - fix for https://bugs.php.net/bug.php?id=61166 (thanks Max Rice)
* Fix - postcode validation when country is different for shipping vs billing
Expand Down

0 comments on commit abaa3ba

Please sign in to comment.